mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-29 00:01:42 +08:00
b5be4c5ebd
- 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>