Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mr.sarkaw's avatar

how to deploy inertiajs with cpanel or hostinger Host?

whenever i tried run inertiajs in local i must run npm run dev, but i want to run it without npm run dev, so anyone can help me with that? if my project run on the local only what i do?

0 likes
7 replies
jlrdw's avatar

@mr.sarkaw yes, I wasn't sure if you use vite or mix, so:

Mix:

npm run prod

Vite:

npm run build

I naturally guessed you would consult the documentation for the one you use.

mr.sarkaw's avatar

@jlrdw ok but with laravel only i deploy to host by moving all files and folder inside the public folder to outside but with these technology when i use this technique this error shows up (Vite manifest not found at: /opt/lampp/htdocs/public/build/manifest.json)

mr.sarkaw's avatar

@Sinnbeck for example: localhost/index of laravel is here, and also the build of inertiajs and i want change the path of the vite manifest but i don't know where i can change it..

Sinnbeck's avatar

@mr.sarkaw If you have public in your url, it sounds like your set up isnt correct. You should serve your project from /public

And I thought this was on hostinger, not localhost?

Please or to participate in this conversation.