nextjs build doesn't work
Unanswered
Whiteleg shrimp posted this in #help-forum
Original message was deleted.
33 Replies
maybe dynamic compilation of WASM is not supported in Edge Runtime.
Whiteleg shrimp
what should i do then
btw are you trying to host on Vercel, calling MongoDB?
Whiteleg shrimp
no.
Whiteleg shrimp
will host on a vps
cool
Whiteleg shrimp
but thing is
idk how to fix this
can't remove mongodb
@tafutada777 which vps?
Whiteleg shrimp
zap hosting vps
@tafutada777 did you specify edge somewhere?
Whiteleg shrimp
i don't think so
everything worked when i used npm run dev
it only doesn't work when i use npm run build
local dev uses Node.js runtime, not Edge runtime
can i get a link to Zap web site?
Whiteleg shrimp
@tafutada777 local dev uses Node.js runtime, not Edge runtime
Whiteleg shrimp
how do i make it use nodejs runtime while building
how did you deploy it on Zap? Docker?
Whiteleg shrimp
i still didn't deploy it
i'm trying to do the build thing so i can
run it
so you run a build on vps linux server but failed at said error, right?
Whiteleg shrimp
windows server
wsl or win?
Whiteleg shrimp
win
power shell?
Whiteleg shrimp
Yes
Original message was deleted
Whiteleg shrimp
How do i fix this?
Whiteleg shrimp
fixed it nvm