question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Next + Cloudflare Workers Script Too Large

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
geelencommented, Sep 30, 2020

Alright, I’ve added the minify option properly, it should be available under:

yarn add https://pkg.csb.dev/fab-spec/fab/commit/b68a4a33/@fab/actions https://pkg.csb.dev/fab-spec/fab/commit/b68a4a33/@fab/cli
fab build --minify

Now looking at why NextJS got so chonky recently. Lockdown’s been tough on us all, I suppose…

1reaction
bashirsouidcommented, Feb 24, 2021

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 👌

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found