Error: Pages only supports files up to 25 MiB in size

I got this error for an app that I bought (nextjs using pnpm). They suggests to work with vercel, but I want to keep working with CF. If I upgrade this project, can this issue be fixed? Or maybe I should use other output folder I am using .next now. Which folder should I use for the output? my structure is:
.next
cache
server
static
types
.next
cache
server
static
types
Thanks,
13:36:29.370 ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size
13:36:29.371
13:36:29.371 cache/webpack/server-production/0.pack is 246 MiB in size
13:36:29.370 ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size
13:36:29.371
13:36:29.371 cache/webpack/server-production/0.pack is 246 MiB in size
5 Replies
coinchimp
coinchimpOP3mo ago
Anyone?
DaniFoldi
DaniFoldi3mo ago
The docs for next says you need to use .vercel/output/static: https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/get-started/
Cloudflare Docs
Get started | Cloudflare Pages docs
Deploy a full-stack Next.js app to Cloudflare Pages
coinchimp
coinchimpOP3mo ago
I tried that too. It didn't work. I ended up moving to vercel. Thanks anyway.
Deo Kumar
Deo Kumar2mo ago
GitHub
GitHub - cloudflare/next-on-pages: CLI to build and develop Next.js...
CLI to build and develop Next.js apps for Cloudflare Pages - cloudflare/next-on-pages
Cloudflare Docs
Get started | Cloudflare Pages docs
Deploy a full-stack Next.js app to Cloudflare Pages
coinchimp
coinchimpOP2mo ago
I'll try later, thanks.
Want results from more Discord servers?
Add your server