-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cloudflare pages/worker issue - WebAssembly.instantiate(): Wasm code generation disallowed by embedder #307
Comments
Hi @harlan-zw nuxt-og-image looks like it uses |
I think the issue is from NextJS's bundler (webpack) |
Webpack is a rabbit hole 🐰 |
Nice one, FWIW I previously had just used static strings for the WASM import that get replaced once the build artifact is ready. This prevents bundlers from trying to do something with the WASM imports. https://github.com/unjs/unwasm was recently released and solves this much better though. |
This issue is not from this library but Cloudflare runtime, root cause is I used Solution for this is cloudflare/next-on-pages#704 (comment) |
@harlan-zw Thank you for your help. @dungmidside Thanks for the clarification, it will help other users. |
Hi everyone,
Thanks for this awesome library.
Currently I have an NextJS app that deployed on Cloudflare pages, my app have an API route for generate OG Image in PNG format.
I use
satori
for generate SVG data and@resvg/resvg-wasm
for convert SVG to PNG format.Here is my code
In local, it work as expect, but when I deploy to Cloudflare pages, but when I access the API, function
initWasm
keep throw error with messageIs there anyone know the solution for this ?
The text was updated successfully, but these errors were encountered: