Reputation: 13
I have deployed my laravel project using hostinger. I've encounter a problem where there is Missing Vite Manifest File deploy at line
@vite(['resources/css/app.css', 'resources/js/app.js'])
How do i solve this? I saw answers recommending on stack
npm run dev/npm install/ npm run build
I tried running them before uploading the files to the server, but they did not work. Is there ant other way to solve it?
Upvotes: 0
Views: 1119
Reputation: 9
when you are pushing to production remove /public/build from .gitignore of course after running npm run build locally.
Upvotes: 0
Reputation: 2875
If you are running it locally, you need to remove /public/build
from .gitignore
otherwise it will never upload if you add it on .gitignore
.
Another way, you could add npm run build
, on your deploy script
Upvotes: 0