shoc-frontend-new/.env.production
Alexandre Brandizzi 0b8d3fa290 feat(infra): call dev API directly, drop the CloudFront /api proxy
Adopt the direct cross-origin API approach (from feat/cd-cdk-fixes) now that the
dev backend allows CORS:

- VITE_API_URL=https://api.dev.seahaven.com/api (absolute, baked into the build)
- remove the CloudFront /api/* proxy behavior + HTTP origin; CloudFront serves
  static content only
- keep the custom domain (dev.seahaven.com), ACM cert, and Route 53 apex alias

VITE_API_URL is per-environment (baked at vite build), so staging/prod builds
must override it and the backend must allow their origins.
2026-07-06 15:03:54 -03:00

4 lines
284 B
Text

# Production API base — the SPA calls the backend directly over HTTPS.
# NOTE: baked into the build at `vite build`, so this is the DEV value. Staging
# and prod builds must override VITE_API_URL per environment (api.staging..., etc.).
VITE_API_URL=https://api.dev.seahaven.com/api