Commit 9f36094
apex-ai-net
fix(config): resolve Next.js 15 transpilePackages conflict with serverExternalPackages
- Removed recharts, framer-motion, and motion from serverExternalPackages in next.config.ts
- Removed same UI libs from external_node_modules in netlify.toml
- These client-only UI libraries were conflicting with Next.js transpilation
- Kept server-side packages (OpenAI, Stripe, Sentry, Supabase, etc.) externalized
- Build now completes successfully (exit code 0)
- Resolves Netlify build error: 'packages in transpilePackages conflict with serverExternalPackages'
Validation:
✅ Type check passes (tsc --noEmit)
✅ Lint passes (only warnings, no errors)
✅ Production build succeeds (npm run build)
✅ Static generation: 76/76 pages
✅ First Load JS optimized with proper chunking1 parent 31a60f4 commit 9f36094
2 files changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
0 commit comments