test: throwaway preview-env smoke test (do not merge)#275
test: throwaway preview-env smoke test (do not merge)#275nourshoreibah wants to merge 5 commits into
Conversation
Not for merge. Exercises the ephemeral PR preview environment end to end: - frontend: sidebar label "BRANCH" -> "BRANCH Test" - backend: donors lambda forces every donor name to "Hello World" Touches both apps/frontend and apps/backend/lambdas so a preview deploy proves frontend build+sync AND lambda code deploy work. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
🌿 ⏳ Creating preview environment… (logs) |
🌿 Preview environment — ready ✅Open: https://d3nmtjoh6ir9ym.cloudfront.net/pr-275/ Shared RDS + Cognito (prod data); DB migrations are not applied here. New commits update this environment in place — a note is posted here on each update. Remove the |
Throwaway preview smoke test — any GET /expenditures returns a single hardcoded expenditure regardless of auth status/access. Not for merge. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The frontend sends Content-Type: application/json on every request, so even GETs are non-simple and trigger a browser preflight. The preview frontend (shared CloudFront) and preview API are cross-origin; the API resources only defined GET/POST, so preflight OPTIONS hit no method and API Gateway returned a 403 with no CORS headers -> opaque 'CORS error' in the browser. - Add OPTIONS to every preview API resource, routed to the proxy lambda (which already returns 200 + Access-Control-Allow-Origin: * for OPTIONS). - Add CORS headers to DEFAULT_4XX/5XX gateway responses so real errors (lambda 502s, unmatched routes) surface with their status instead of as CORS errors. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
🌿 Preview environment torn down 🧹 — the stack for this PR has been destroyed. |
1 similar comment
|
🌿 Preview environment torn down 🧹 — the stack for this PR has been destroyed. |
|
🌿 ⏳ Creating preview environment… (logs) |
🌿 Preview environment — ready ✅Open: https://d3nmtjoh6ir9ym.cloudfront.net/pr-275/ Shared RDS + Cognito (prod data); DB migrations are not applied here. New commits update this environment in place — a note is posted here on each update. Remove the |
|
🌿 Preview environment torn down 🧹 — the stack for this PR has been destroyed. |
|
🌿 ⏳ Creating preview environment… (logs) |
🌿 Preview environment — ready ✅Open: https://d3nmtjoh6ir9ym.cloudfront.net/pr-275/ Shared RDS + Cognito (prod data); DB migrations are not applied here. New commits update this environment in place — a note is posted here on each update. Remove the |
|
🌿 Preview environment torn down 🧹 — the stack for this PR has been destroyed. |
Throwaway — do not merge. Exists only to exercise the ephemeral PR preview environment (#274).
Changes
BRANCH→BRANCH Test(apps/frontend/src/app/components/Navbar.tsx)Hello World(apps/backend/lambdas/donors/handler.ts)Touches both
apps/frontendandapps/backend/lambdasso a preview deploy proves the frontend build+sync and lambda code deploy both work.How to test (after #274 is merged to main)
test-environmentlabel to this PR.🌿 Preview environment — ready ✅comment, open the URL.updated in placecomment + no terraform in the Actions log.