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
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