fix: set production VITE_API_URL/VITE_WS_URL explicitly in CI build

The Gitea Actions workflow checks out a fresh copy of the repo via
actions/checkout, which never has frontend/.env.local (it's gitignored,
only exists in the manually-maintained /root/realtime-collab clone).
Without it, Vite silently fell back to the localhost dev defaults and
baked a broken API URL into the production bundle — every CI-triggered
build overwrote a working manual build with a broken one.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
M1ngdaXie
2026-08-15 16:32:10 +08:00
co-authored by Claude Sonnet 5
parent 8b1d2f14f1
commit 921e8ae159
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -42,4 +42,4 @@ loadtest/pprof
/docs
# K3s secrets
k3s/secret.yaml
k3s/secret.yaml.playwright-mcp/