Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying on Cloudflare Pages, script_too_large? #193

Closed
matthewjewell opened this issue Apr 13, 2024 · 6 comments
Closed

Deploying on Cloudflare Pages, script_too_large? #193

matthewjewell opened this issue Apr 13, 2024 · 6 comments

Comments

@matthewjewell
Copy link

Hi,

I think this may be misconfiguration or misunderstanding on my part rather than an issue, but just to check:

Tried deploying a branch with a simple template, it works well locally, but with the 1mb worker limit on Pages (free) I get the workers.api.error.script_too_large error as the compiled-wasm file is 2.4mb.

Is there a way around this or is the package not usable with the 1mb limit?

Thanks!

@ExEr7um
Copy link

ExEr7um commented Apr 19, 2024

Same issue. OG Image adds 1.8MB compressed.

@ijkml
Copy link

ijkml commented May 17, 2024

Hi, Harlan 👋.
Ran into this issue, too.

@harlan-zw
Copy link
Collaborator

If you want to generate runtime images with Satori on Cloudflare there isn't a way around this (for now). This is due to upstream dependency WASM sizes that I have no control over.

If you're happy to prerender all of your images then you can follow my comment.

@matthewjewell
Copy link
Author

Thanks really useful, thanks for the reply @harlan-zw

@harlan-zw harlan-zw mentioned this issue Sep 11, 2024
6 tasks
@harlan-zw
Copy link
Collaborator

Please use the new Zero Runtime mode if you can prerender all of the images you need https://nuxtseo.com/og-image/guides/zero-runtime

@erados
Copy link

erados commented Sep 24, 2024

@harlan-zw What if I use "node" instead of WASM? Would that allow generating runtime images on Cloudflare without the size limitations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants