diff --git a/scripts/build-portal-runtime.mjs b/scripts/build-portal-runtime.mjs index 906e133..b55c7e0 100755 --- a/scripts/build-portal-runtime.mjs +++ b/scripts/build-portal-runtime.mjs @@ -267,7 +267,7 @@ async function writeMetadata() { '', 'export NODE_ENV=production', 'export H5_PORT="${H5_PORT:-8081}"', - 'export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://mm.tkmind.cn}"', + 'export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://m.tkmind.cn}"', 'export TKMIND_API_TARGETS="${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}"', 'export TKMIND_API_TARGET="${TKMIND_API_TARGET:-https://127.0.0.1:18006}"', 'export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1:-https://127.0.0.1:18007}"', @@ -385,10 +385,10 @@ async function writeMetadata() { ' H5_USERS_ROOT / MINDSPACE_STORAGE_ROOT / MEMIND_SHARED_PUBLISH_ROOT', '', 'Deployment and operations transport:', - ' H5 public domain: mm.tkmind.cn', - ' Current public path: mm.tkmind.cn -> local nginx -> Portal :8081', - ' Legacy rollback-only path: m.tkmind.cn -> 105 nginx -> reverse SSH tunnel -> Portal :8081', - ' Future H5 traffic must not depend on 105 forwarding unless explicitly rolling back.', + ' H5 public domain: m.tkmind.cn', + ' Current public path: m.tkmind.cn -> 105 nginx -> 103 Portal :8081', + ' Test-only path: mm.tkmind.cn -> 105 nginx -> local/103 test routing when explicitly enabled.', + ' Production H5 and WeChat links should use m.tkmind.cn unless a test rollout explicitly overrides H5_PUBLIC_BASE_URL.', '', 'Streaming runtime operations:', ' node scripts/check-stream-runtime.mjs', @@ -410,7 +410,7 @@ async function writeMetadata() { ' node scripts/runtime-worker-drain.mjs undrain goosed-3', ' node scripts/check-tool-runtime.mjs', ' node scripts/check-agent-code-run-entry.mjs', - ' curl -sk https://mm.tkmind.cn/api/runtime/status # includes toolRuntime.queue', + ' curl -sk https://m.tkmind.cn/api/runtime/status # includes toolRuntime.queue', ' node scripts/agent-run-worker.mjs --status', ' node scripts/agent-run-worker.mjs --once', ' bash scripts/install-agent-run-worker-agent.sh # installs disabled by default', diff --git a/scripts/check-agent-code-run-entry.mjs b/scripts/check-agent-code-run-entry.mjs index df47876..cc277ee 100644 --- a/scripts/check-agent-code-run-entry.mjs +++ b/scripts/check-agent-code-run-entry.mjs @@ -115,7 +115,7 @@ const envFile = process.env.MEMIND_ENV_FILE || path.join(process.cwd(), '.env'); loadEnvFile(envFile); const distRoot = path.resolve(process.env.MEMIND_H5_DIST_ROOT || path.join(process.cwd(), 'dist')); -const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://mm.tkmind.cn').replace(/\/$/, ''); +const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://m.tkmind.cn').replace(/\/$/, ''); const insecureDispatcher = new Agent({ connect: { rejectUnauthorized: false } }); async function fetchJson(pathname) { diff --git a/scripts/check-stream-runtime.mjs b/scripts/check-stream-runtime.mjs index fd9730e..41834aa 100755 --- a/scripts/check-stream-runtime.mjs +++ b/scripts/check-stream-runtime.mjs @@ -19,7 +19,7 @@ function loadEnvFile(filePath) { loadEnvFile(path.join(process.cwd(), '.env')); const insecureDispatcher = new Agent({ connect: { rejectUnauthorized: false } }); -const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://mm.tkmind.cn').replace(/\/$/, ''); +const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://m.tkmind.cn').replace(/\/$/, ''); const targets = (process.env.TKMIND_API_TARGETS || process.env.TKMIND_API_TARGET || '') .split(',') .map((value) => value.trim()) diff --git a/scripts/run-memind-portal-prod.sh b/scripts/run-memind-portal-prod.sh index 5ef9b2d..449c9db 100755 --- a/scripts/run-memind-portal-prod.sh +++ b/scripts/run-memind-portal-prod.sh @@ -13,7 +13,7 @@ fi export NODE_ENV=production export H5_PORT="${H5_PORT:-8081}" -export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://mm.tkmind.cn}" +export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://m.tkmind.cn}" export TKMIND_API_TARGETS="${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}" export TKMIND_API_TARGET="${TKMIND_API_TARGET:-https://127.0.0.1:18006}" export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1:-https://127.0.0.1:18007}" diff --git a/scripts/runtime-slo-report.mjs b/scripts/runtime-slo-report.mjs index 4d66980..7cbc8a8 100755 --- a/scripts/runtime-slo-report.mjs +++ b/scripts/runtime-slo-report.mjs @@ -289,7 +289,7 @@ if (args.help) { process.exit(0); } -const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://mm.tkmind.cn').replace(/\/$/, ''); +const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://m.tkmind.cn').replace(/\/$/, ''); const redisUrl = process.env.MEMIND_RUNTIME_REDIS_URL || 'redis://127.0.0.1:6379/0'; const namespace = process.env.MEMIND_RUNTIME_REDIS_NAMESPACE || 'memind:runtime'; const mindSpaceRoots = uniquePaths([ diff --git a/scripts/wechat-mp-menu.mjs b/scripts/wechat-mp-menu.mjs index 494c6e9..187faa3 100755 --- a/scripts/wechat-mp-menu.mjs +++ b/scripts/wechat-mp-menu.mjs @@ -23,12 +23,12 @@ const MENU = { { type: 'view', name: 'TKMind', - url: 'https://mm.tkmind.cn', + url: 'https://m.tkmind.cn', }, { type: 'view', name: 'M空间', - url: 'https://mm.tkmind.cn/space', + url: 'https://m.tkmind.cn/space', }, { type: 'view', diff --git a/user-publish.mjs b/user-publish.mjs index 5978567..6774e33 100644 --- a/user-publish.mjs +++ b/user-publish.mjs @@ -47,7 +47,7 @@ export function resolveUserAddressName({ displayName, username, slug } = {}) { } export function resolvePublicBaseUrl(env = process.env) { - return (env.H5_PUBLIC_BASE_URL ?? 'https://mm.tkmind.cn').replace(/\/$/, ''); + return (env.H5_PUBLIC_BASE_URL ?? 'https://m.tkmind.cn').replace(/\/$/, ''); } export const PUBLISH_KEY_UUID =