Commit ff88aa5
fix(build): resolve Netlify deployment failures
- Add explicit Node.js runtime exports to 4 API routes
- Move TypeScript from dependencies to devDependencies (-9.1MB Lambda)
- Exclude TypeScript from Lambda bundle in next.config.ts
- Update @netlify/plugin-nextjs to v5.13.5
These changes resolve:
1. API routes defaulting to Edge runtime causing failures
2. TypeScript compiler bundled in Lambda (9.1MB waste)
3. Plugin version mismatch with Next.js 15.5.4
Expected impact:
- Lambda bundle size: 86MB → ~77MB (10% reduction)
- Proper runtime configuration for OpenAI/Stripe SDKs
- Improved build reliability
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5830a6a commit ff88aa5
7 files changed
Lines changed: 27 additions & 72 deletions
File tree
- app/api
- create-checkout
- gpt5
- documentation
- function
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
0 commit comments