Go to file
hailin 20e6d90cf3 fix(blogai): 修复 .env.example 中失效的前端运行地址,恢复 BLOGAI_HOST 占位符机制
NEXT_PUBLIC_CLIENT_BASE_WS 在构建期被内联进 chat-model.tsx,
原值 wss://www.jellyai.xyz/ws 已失效。线上镜像 cradle:latest 用的是
wss://ai.szaiai.com/api/v1/deploy/ws,但该值来自构建机上一份未提交的
.env,仓库里无从得知,照仓库直接构建会导致聊天 WebSocket 连接失败。

Dockerfile 中的 `sed -i "s|{{BLOGAI_HOST}}|${BLOGAI_HOST}|g"` 因
.env.example 里缺少该占位符而一直空转,--build-arg BLOGAI_HOST 实际无效。
改为占位符形式后该机制恢复工作,构建地址不再依赖构建机本地文件。

NEXT_PUBLIC_CLIENT_IMAGE_URL 原值 http://14.17.80.241:8090 已失效,
线上构建同样为空,置空以与线上一致。

验证:以 --build-arg BLOGAI_HOST=ai.szaiai.com 重新构建镜像并启动,
与线上 ai.szaiai.com 对比 —— 内联地址、23 条 API 清单、7 个页面响应
与字节数、/api/health 输出全部一致。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-24 21:22:08 -07:00
.vscode . 2025-04-07 13:36:35 +08:00
admin-v5 initial commit. 2024-06-07 15:29:58 +08:00
apps fix(blogai): 修复 .env.example 中失效的前端运行地址,恢复 BLOGAI_HOST 占位符机制 2026-08-24 21:22:08 -07:00
internal initial commit. 2024-06-07 15:29:58 +08:00
nginx initial commit. 2024-06-07 15:29:58 +08:00
packages initial commit. 2024-06-07 15:29:58 +08:00
test initial commit. 2024-06-07 15:29:58 +08:00
tools initial commit. 2024-06-07 15:29:58 +08:00
.dockerignore . 2025-04-05 21:09:17 +08:00
.gitignore initial commit. 2024-06-07 15:29:58 +08:00
README.md initial commit. 2024-06-07 15:29:58 +08:00
build.sh . 2025-06-14 23:04:43 +08:00
index.html initial commit. 2024-06-07 15:29:58 +08:00
openapi.json initial commit. 2024-06-07 15:29:58 +08:00
package.json . 2025-06-23 22:01:46 +08:00
pnpm-lock.yaml . 2025-06-23 13:52:49 +08:00
pnpm-workspace.yaml initial commit. 2024-06-07 15:29:58 +08:00
supervisor.conf . 2025-06-16 14:47:14 +08:00
tsconfig.json . 2025-06-23 14:11:53 +08:00
turbo.json initial commit. 2024-06-07 15:29:58 +08:00
wrapper.sh . 2025-06-14 23:24:31 +08:00

README.md


npm i -g pm2

pm2 start npm --name appgo -- start