Generated Pages Functions bundle size (69568508) is over the limit of 25.0 MiB

I am attempting to migrate to cloudflare pages using @Cloudflare/next-on-pages, i have gotten my build to work however it exceeds the 25mb limit. what can i do to reduce this?
No description
2 Replies
Collin22
Collin22OP2w ago
the bulk of my bundle is coming nextonpagesdist/functions, what can i do to minimize this?
No description
Collin22
Collin22OP2w ago
got this working the @mantine/core package was being bundled everywhere, fixed by adding this to nextjs config under experiemental optimizePackageImports: ['@mantine/core', '@mantine/hooks']

Did you find this page helpful?