From c9960aae24fcc9d5a72756d98985b6a9144c1a35 Mon Sep 17 00:00:00 2001 From: yiekheng Date: Sat, 9 May 2026 23:07:29 +0800 Subject: [PATCH] chore: switch web to port 9000 (test.04080616.xyz) + exclude test files from bot tsc build - Local dev WEB_PORT now 9000 to match the planned dev/staging domain test.04080616.xyz. Production deployment uses port 8100 mapped to rexwa.04080616.xyz (configured in plan 4). - apps/bot/tsconfig.json: exclude src/**/*.test.ts from the production build (vitest types only present at dev time, mirrors the same fix we made earlier for packages/shared). --- .env.development | 2 +- apps/bot/tsconfig.json | 3 ++- envs/.env.example | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index 898b100..1b85f1c 100644 --- a/.env.development +++ b/.env.development @@ -6,5 +6,5 @@ BOT_HEALTH_PORT=8081 BOT_LOG_LEVEL=debug SEED_OPERATOR_TELEGRAM_ID=818380985 SEED_OPERATOR_NAME="yiekheng (dev)" -WEB_PORT=8100 +WEB_PORT=9000 AUTH_SECRET=86f656580a58f03b6ccb43d257e0e801ecd5356e042e8886b3c7c569e29ff13c diff --git a/apps/bot/tsconfig.json b/apps/bot/tsconfig.json index 8f24167..9057507 100644 --- a/apps/bot/tsconfig.json +++ b/apps/bot/tsconfig.json @@ -4,5 +4,6 @@ "outDir": "./dist", "rootDir": "./src" }, - "include": ["src/**/*"] + "include": ["src/**/*"], + "exclude": ["src/**/*.test.ts"] } diff --git a/envs/.env.example b/envs/.env.example index 4ca0186..e603b71 100644 --- a/envs/.env.example +++ b/envs/.env.example @@ -14,6 +14,8 @@ BOT_LOG_LEVEL=info SEED_OPERATOR_TELEGRAM_ID= SEED_OPERATOR_NAME=Operator -# === Web (placeholder for plan 3) === -WEB_PORT=8100 +# === Web === +# Port the Next.js container exposes on the host. Production deployment +# (rexwa.04080616.xyz) uses 8100; dev/staging (test.04080616.xyz) uses 9000. +WEB_PORT=9000 AUTH_SECRET=