fix(ci): staging builds resolve to prod API URL — bake VITE vars into build.yml (#1371)

This commit is contained in:
YellowSnnowmann
2026-05-08 19:04:00 -07:00
committed by GitHub
parent 0a749f5cec
commit dcd4f97f00
2 changed files with 140 additions and 16 deletions
+5
View File
@@ -68,6 +68,11 @@ jobs:
cargo tauri build -c "$TAURI_CONFIG_OVERRIDE" --bundles deb
env:
NODE_ENV: production
# CI builds should point at staging, not production.
# Without these, APP_ENV is undefined in config.ts and
# DEFAULT_BACKEND_URL falls through to api.tinyhumans.ai.
VITE_OPENHUMAN_APP_ENV: staging
VITE_BACKEND_URL: https://staging-api.tinyhumans.ai
CARGO_PROFILE_RELEASE_OPT_LEVEL: "1"
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "16"
CARGO_PROFILE_RELEASE_LTO: "false"