mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
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.
4 lines
284 B
Text
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
|