#nextjs build doesn't work

33 messages · Page 1 of 1 (latest)

versed rampartBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

onyx shell
#

maybe dynamic compilation of WASM is not supported in Edge Runtime.

sacred obsidian
#

what should i do then

onyx shell
#

btw are you trying to host on Vercel, calling MongoDB?

sacred obsidian
#

no.

onyx shell
#

oh

sacred obsidian
#

will host on a vps

onyx shell
#

cool

sacred obsidian
#

but thing is

#

idk how to fix this

#

can't remove mongodb

onyx shell
#

but error messages says Edge

#

which vps?

#

did you specify edge somewhere?

sacred obsidian
sacred obsidian
#

everything worked when i used npm run dev

#

it only doesn't work when i use npm run build

onyx shell
#

local dev uses Node.js runtime, not Edge runtime

#

can i get a link to Zap web site?

sacred obsidian
sacred obsidian
onyx shell
#

how did you deploy it on Zap? Docker?

sacred obsidian
#

i still didn't deploy it

#

i'm trying to do the build thing so i can

#

run it

onyx shell
#

so you run a build on vps linux server but failed at said error, right?

sacred obsidian
#

windows server

onyx shell
#

wsl or win?

sacred obsidian
#

win

onyx shell
#

power shell?

sacred obsidian
#

Yes

#

How do i fix this?