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

Raphdev's avatar

Laravel + Vue + Inetialjs

I'm having issues with my Laravel project after I deployed to production, everything is working fine on localhost but showing blank page after deploying with no console errors. I have tried most suggested ways to fix it but I'm still getting the blank page. Here is my project link portal. recruittech. ng And again, the 404 page on my project is working when you visit a page that is not found but I don't know why the other pages are showing blank

0 likes
13 replies
gych's avatar

Do you use shared hosting ? Check in your public folder if there's a hot file, if so delete it.

gych's avatar

@Raphdev Are you using shared hosting and which steps did you exactly take to deploy your application ?

Raphdev's avatar

@gych Yes I'm using shared hosting, and uploaded the build project to my my cpanel without node_modules included. The issue is that I'm not getting any error on my console even when I tried viewing the source code everything seems just fine and the app js files are linking to the right source

gych's avatar

@Raphdev Were you able to install the node modules on your shared hosting with npm install ?

gych's avatar

@Raphdev EDIT: Ok so you did the build on local first?

You only need the node modules in your production environment if you run npm build on the server

gych's avatar

When you tested your project in the local environment, did you test the build in public html or only with npm run dev?

TruptMan-Solutions's avatar

no it's not necessary to install npm on hosting server. i recently deployed a project having npm dependencies and module bundler vite i just uploaded public/build folder to project using ftp. by running npm run build vite will recreate all the js and css files again. try this

1 like
gych's avatar

Yes you're right if the build is done on local first, its not needed which is probably the case because OP uses shared hosting.

Please or to participate in this conversation.