Next + Cloudflare Workers Script Too Large
See original GitHub issueHello,
I am new to Fab and trying to deploy a stock Next.js site to Cloudflare workers. However I am getting a workers.api.error.script_too_large error when deploying.
From what I can tell the server.js file is not being minified. Is this supposed to happen automatically or have I missed something in the configuration?
Thanks for the help.
Issue Analytics
- State:
- Created 3 years ago
- Comments:21 (11 by maintainers)
Top Results From Across the Web
Workers.api.error.script_too_large - Cloudflare Community
I am trying to upload my Gatsby Site to the workers API, but I'm getting the following errors: Error: Something went wrong!
Read more >Error 10027: workers.api.error.script_too_large · Issue #34
I'm using linc for the first time and am getting some strange deployment errors that mean that my site is not yet deploying...
Read more >Running a Next.js Site on Cloudflare Pages - Opstrace
These days there are so many providers for JAMstack hosting, it's hard to choose. Netlify, GitHub Pages, Vercel, Heroku, ... the New Dynamic...
Read more >Newest 'cloudflare-workers' Questions - Stack Overflow
Is it possible to use UglifyJS in Cloudflare worker JS Script? ... everything has been working fine up till now but my code...
Read more >An Introduction To Cloudflare Workers And Cloudflare KV store
Workers KV as it sounds, is a low-latency, high-volume, key-value store ... Each KV namespace can be bound to a worker script so...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Alright, I’ve added the
minifyoption properly, it should be available under:Now looking at why NextJS got so chonky recently. Lockdown’s been tough on us all, I suppose…
So I guess this is still an issue… I just discovered this project (it sounds really great!) but I actually can’t do the Getting Started Guide with NextJS with zero modifications and deploy to Cloudflare.
The minify flag reduced from 1.7MB to 1.3MB but still not under and I haven’t even made modifications yet.
Kinda a bummer because NextJS seems like a great full featured project. Maybe I should try something else? I am interested in FAB project + Cloudflare workers because it seems like a great combo for super low latency sites.
Edit: Oh, I see #259 I didnt see it earlier 👌