This commit is contained in:
toom1996
2026-09-29 19:59:22 +08:00
parent b4fa41338b
commit 335e264e45
12 changed files with 143 additions and 103 deletions

View File

@ -36,6 +36,13 @@ export default defineConfig({
mode: 'standalone'
}),
// 运行期 node server 监听地址(容器内部)。nginx 反代到该端口。
// host: true 监听 0.0.0.0,便于同容器内 nginx 以 127.0.0.1:3000 转发。
server: {
host: true,
port: 3000,
},
// base 地址配置已迁到 src/lib/config(dev/prod 两份 TS,缺则抛异常)。
// 仅「密钥」类仍走构建期 env(如 SSG_TOKEN),不在此声明,也不进客户端 bundle。
});