fix patch gateway feat/phase-2g-bundle
AI Agent git-import/068377df · 116 days ago · Apr 2, 2026 · Diff

fix(gateway): eliminate cold-start timeouts with warmup, lazy Stripe, Node 20, frontend retry

The 1.8 MB gateway Lambda bundle causes 12+ second cold starts on Netlify, which exceeds browser TLS-handshake timeouts and produces ERR_CONNECTION_CLOSED / ERR_TIMED_OUT on login, missing OAuth buttons, and intermittent API failures.

- Add scheduled warmup function (every 5 min) to keep the Lambda warm - Lazy-load Stripe SDK (~220 KB) via dynamic import on first webhook call - Set NODE_VERSION=20 for faster V8 startup - Mark stripe as esbuild external (bundle: 1.8 MB → 1.6 MB) - Frontend: initProviders() retries 3× with backoff; api() retries GET/HEAD 2×

sha256:71be6824d7a72e3a81200fbdba91412c3a4447e900882e20ab5503eb0145d92b sha
sha256:073d33fc4c1fc6ec64d668fbdb2457f09f6c3aa48af97cb9f7ea34f008ed329e snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:71be6824d7a72e3a81200fbdba91412c3a4447e900882e20ab5503eb0145d92b --body "your comment"