shoc-frontend-new/infra/cdk/lib
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
..
frontend-stack.ts feat(infra): call dev API directly, drop the CloudFront /api proxy 2026-07-06 15:03:54 -03:00