fix production attachment file origin
This commit is contained in:
@@ -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)` 工作流手动发布。
|
||||
|
||||
## 目录
|
||||
|
||||
Reference in New Issue
Block a user