Bundle backend with esbuild for serverless deployment
Vercel's file tracer copied the .mjs variant of @google/genai and missed the .cjs that the tsc-compiled CommonJS require() needs, crashing every request. Bundling all deps into a single dist/index.js removes runtime node_modules resolution entirely and also covers the lazy dynamic imports (pdfjs-dist, mammoth) that would fail the same way. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
| Repository | NavpreetSSidhu/mike |
|---|---|
| Author | Navpreet Sidhu <navpreet4248@gmail.com> |
| Authored | |
| Parents | 3ab790a4 |
| Stats | 2 files changed , +5 , -1 |
| Part of | Vercel monorepo deployment |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-0196243a.md
from inside the repo you want the change in.