shoc-frontend-new/infra/cdk/cdk.json
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

19 lines
771 B
JSON

{
"app": "npx ts-node --prefer-ts-exts bin/app.ts",
"watch": {
"include": ["**"],
"exclude": ["README.md", "cdk*.json", "**/*.d.ts", "node_modules", "cdk.out"]
},
"context": {
"@aws-cdk/aws-iam:minimizePolicies": true,
"@aws-cdk/core:checkSecretUsage": true,
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
"@aws-cdk/aws-cloudfront:useDefaultSecurityPolicyTLSv1.2_2021": true,
"//": "dev environment (account 396287094661). CI runs `cdk deploy` with no -c flags, so these live here.",
"domainNames": "dev.seahaven.com",
"certificateArn": "arn:aws:acm:us-east-1:396287094661:certificate/2b78e74f-7b65-4b82-a413-7a498b102f00",
"hostedZoneId": "Z07671212N75U4YLPWZR8",
"hostedZoneName": "dev.seahaven.com"
}
}