I have a next.js app in production and when i try to upload it to the server via node.js app in cpanel i cant get it to work. I created the app following a tutorial and everything seems to work fine if the app is newly created but in my case i already have the full app ready. So when i try npm run dev or npm start i get always the same error that says not enough wasm memory.

Seeing this repeatedly i search all i could and found this post :

Of course i tried it and this i what i got:

The problem is that i don't know hot to unlimit the max memory size (-m) and virtual memory (-v). I also tried contacting the server support but it seems they take some time to even answer and i have a deadline in this project.
This is a screenshot of the full root directory in cyberduck, i don't know if it helps:

Thanks in advance.