Home > Back-end >  laravel heroku Vite manifest not found at: /app/public/build/manifest.jso
laravel heroku Vite manifest not found at: /app/public/build/manifest.jso

Time:07-06

after uploading my project Laravel in Heroku say "Vite manifest not found at: /app/public/build/manifest.json"

it work perfectly in localhost but in Heroku not working.

this is a preview of the problem

https://res.cloudinary.com/wanis4007/image/upload/v1656872417/Screenshot_2022-07-03_211622_ohzgs5.png

I run this code before push the project in Heroku

npm install
npm run dev
npm run build

any suggestion ?

CodePudding user response:

okay , the solution is to add both nodejs and php buildpacks to the project before deployment (you can do this also after deployment but you have to redeploy the project)

heroku buildpacks:set heroku/php
heroku buildpacks:set heroku/nodejs

and make sure you have the two buildpacks (php and node js) in your project by using this code

heroku buildpacks

note : you can add buildpacks with heroku dashboard in setting section

  • Related