Can't use with Cloudflare Pages
Closed this issue · 2 comments
ExEr7um commented
If I deploy to Cloudflare Pages than I get error:
500 WebAssembly.instantiate(): Wasm code generation disallowed by embedder
I found some information about it in Shiki documentation here, but I'm not sure what I should do if I'm using Nuxt module.
pi0 commented
Thanks for reporting issue. It will be fixed in next release (0.3.0) without need of additional config. In the meantime, you need to set nitro.experimental.wasm: true
:
export default defineNuxtConfig({
nitro: {
experimental: {
wasm: true,
},
},
})
ExEr7um commented
Thank you for such a quick response 💚