Jasper Van
|
b5be4c5ebd
|
feat: v2.5.0 T2 — AWS Lambda deployment (entry + SAM + workflow + docs) (#331)
- server/entry-lambda.ts: Hono app via hono/aws-lambda handle(); lazy init
pattern for CJS compatibility and warm-start reuse; serves SPA static
files from dist/ with MIME detection and index.html fallback
- deploy/aws-lambda/template.yaml: SAM template with Function URL (no API
Gateway), Node 22, TURSO_* / BETTER_AUTH_SECRET / APP_URL env vars,
minimal IAM (AWSLambdaBasicExecutionRole)
- .github/workflows/deploy-aws-lambda.yml: 8-step contract (guard upstream,
check secrets with exact names, resolve tag, checkout, ensure SAM artifact
bucket, apply Turso migrations, build + sam deploy, post-deploy auto-gen
BETTER_AUTH_SECRET + patch BETTER_AUTH_URL + write URL to summary)
- package.json: build:lambda script (tsup CJS, external @libsql/client)
- docs/deploy/aws-lambda.md: Prerequisites / Secrets / Trigger /
First-boot storage / Cost sections
- README.md, V2_ROADMAP.md: link new doc
Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f
Co-authored-by: Bob <aibob@mails.agent-kanban.dev>
|
2026-04-22 01:28:05 -04:00 |
|