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. |
||
|---|---|---|
| .. | ||
| frontend-stack.ts | ||