fix: Set Vercel output directory to static/admin and update deployment documentation to clarify this configuration.

This commit is contained in:
CJACK
2026-02-16 20:38:31 +08:00
parent a6a87853d4
commit 3cf207bcbb
3 changed files with 30 additions and 0 deletions

View File

@@ -131,6 +131,20 @@ Error: Command failed: go build -ldflags -s -w -o .../bootstrap .../main__vc__go
这通常发生在 Vercel Go 入口文件直接 `import internal/...`
当前仓库已通过公开桥接包 `app` 解决:`api/index.go` -> `ds2api/app` -> `internal/server`
若看到类似报错:
```text
No Output Directory named "public" found after the Build completed.
```
说明 Vercel 正在按 `public` 校验前端产物目录。当前仓库前端产物目录是 `static/admin`,已在 `vercel.json` 显式配置:
```json
"outputDirectory": "static/admin"
```
若你在项目设置里手动改过 Output Directory请同步改为 `static/admin` 或清空让仓库配置生效。
## 4. 反向代理Nginx
如果在 Nginx 后挂载,建议关闭缓冲以保证 SSE