Hello, I’ve tried deploying a next.js app with WASM file in the 3 possible documented ways:
- With the source on Github: it times out, because for some reason the optimization step takes more than 15 minutes here (this finishes in about a minute on my laptop).
- Project drag and drop: status green, it says “published”, opening the page shows a popup with “page not found”
- Netlify CLI: also shows success, this actually deploys and runs the next.js app, but not the WASM file. The WASM build in this case was simply already bundled in the directory. But it’s apparently not uploaded.
I found someone asking about WASM here: Wasm support by just file upload? - #2 by hrishikesh reply “you can host any file”, with a link to this basic guide A Step-by-Step Guide: Deploying on Netlify | Netlify which as listed above, doesn’t work.
What do I’ve to do to make this work, please?
Site names:
mol1 (Github)
cool-sunshine-4a2b07 (drag and drop)
classy-puffpuff-b08eab (drag and drop)
671bff840a7e7cc7a4b1b92a–classy-puffpuff-b08eab.netlify.app (draft url for CLI)
Edit: actually with WASM the file is there, as can be seen here:
so why is it not being used? this works on my local machine.
Edit 2: it’s also missing the stylesheets. From what I see with network inspector those fail to load, but the WASM file request doesn’t even appear there (it appears on my local machine). No idea what’s going on.