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

ryan_'s avatar
Level 4

Deploy on Heroku

Hello, this is my first time triyng to deploy a laravel app, i tried heroku but i got this error. any help?

Vite manifest not found at: /app/public/build/manifest.json (View: /app/resources/views/layouts/app.blade.php) (View: /app/resources/views/layouts/app.blade.php)
0 likes
3 replies
MahmoudAdelAli's avatar

i faced this problem before and i solve it by

  "scripts": {
        "dev": "vite",
        "build": "vite build",
        "postinstall": "npm run build"
    },

in package.json

ryan_'s avatar
ryan_
OP
Best Answer
Level 4

if any one got the same problem, I solved it buy removing public/build from the gitignored file.

1 like

Please or to participate in this conversation.