-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
Description
Describe the bug
Everything works on local but doesn't work on cloudflare pages
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/buhodev/melt-ui-starter/
- Deploy on cloudflare (e.g. [my-new-project].pages.dev)
- Go to
[my-new-project].pages.dev/en/og
- See error 500 Internal error.
To see the logs on cloudflare dashboard:
- Go to cloudflare dashboard
- Click on
Workers & Pages
on the left sidebar
- Click on
View details
on the bottom right of your project card
- Click on
Functions
tab and scroll down - Click on
Begin logs stream
button and wait until the Websocket connection is established.
- Go to
[my-new-project].pages.dev/en/og
again to trigger the function. - Click on the last GET log
- See the error trace:
{
"outcome": "ok",
"scriptName": "pages-worker--1264517-production",
"diagnosticsChannelEvents": [],
"exceptions": [],
"logs": [
{
"message": [
"CompileError: WebAssembly.instantiate(): Wasm code generation disallowed by embedder"
],
"level": "log",
"timestamp": 1690291911201
},
{
"message": [
"Error: WASM has not been initialized. Call `initialize` function."
],
"level": "error",
"timestamp": 1690291911201
}
],
...
}
Expected behavior
The /og
route should generate the image
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 11
- Browser: Chrome
Additional context
Add any other context about the problem here.
jasongitmail