Next.js Discord

Discord Forum

how to upload and host next 14 app dir to cpanel?

Unanswered
Vizsla posted this in #help-forum
Open in Discord
VizslaOP
I have uploaded the next app to cpanel and selected node app but when I the build and the start script from cpanel it throw an error
and yes I have created server.js custom server inside my next.
the error:

returncode: 1
stdout:
masakn@0.1.0 start
NODE_ENV=production node server.js
stderr:
node:internal/deps/undici/undici:7534
return await WebAssembly.instantiate(mod, {
^

RangeError: WebAssembly.instantiate(): Out of memory: wasm memory
at lazyllhttp (node:internal/deps/undici/undici:7534:32)

Node.js v18.18.2

I connect shh connection from my computer and tried all the scripts all worked except the build command it thow an error

the error is attatched

1 Reply

have you been able to fix this problem? I am runnign into the same issue