fix production attachment file origin

This commit is contained in:
richjohnrambo
2026-10-14 15:22:46 +08:00
parent c1338985d4
commit 8a26a4ccf9
4 changed files with 18 additions and 2 deletions
+6 -1
View File
@@ -26,9 +26,14 @@ npm run build
根目录 `Dockerfile` 只复制并构建 `web/`:
```bash
docker build --build-arg TINODE_API_KEY="<部署密钥>" -t im-webapp .
docker build \
--build-arg TINODE_API_KEY="<部署密钥>" \
--build-arg TINODE_FILE_BASE="https://api.118im.com/v0/file" \
-t im-webapp .
```
生产环境通过 `TINODE_FILE_BASE` 固定附件下载入口;本地开发不设置该变量时,继续使用租户解析结果和 Vite 代理。
测试集群通过 Gitea Actions 的 `Deploy im-webapp (k3s test cluster)` 工作流手动发布。
## 目录