This is a well known bug for many shared hosting.
Step to reproduce : Setup deployeur to deploy a project that has vite as the build tool : for instance : a laravel + inertia + vuejs project.
In the deploy process from your yaml file, npm run build will fail with the OOM error:
node:internal/deps/undici/undici:5829
return await WebAssembly.instantiate(mod, {
^
RangeError: WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instance
at lazyllhttp (node:internal/deps/undici/undici:5829:32)
Vite Version: 5
Node.js 22
OS: Shared Hosting (cPanel) / Namecheap
This is a well known bug for many shared hosting.
Step to reproduce : Setup deployeur to deploy a project that has vite as the build tool : for instance : a laravel + inertia + vuejs project.
In the deploy process from your yaml file, npm run build will fail with the OOM error:
node:internal/deps/undici/undici:5829 return await WebAssembly.instantiate(mod, { ^ RangeError: WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instance at lazyllhttp (node:internal/deps/undici/undici:5829:32)Vite Version: 5
Node.js 22
OS: Shared Hosting (cPanel) / Namecheap