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

ohho's avatar
Level 4

"Vite manifest not found" on production server ...

When I deploy a Laravel 9 project to production, Laravel replies:

Spatie\LaravelIgnition\Exceptions\ViewException: Vite manifest not found at: /var/www/.../public/build/manifest.json in file /var/www/.../vendor/laravel/framework/src/Illuminate/Foundation/Vite.php on line 139

It turns out the files in /public/build folder are not committed in the git repository.

Should I?

  1. Install npm on production server and run npm run build, or

  2. Include files (e.g. manifest.json) of /public/build folder into my repository and pull them in production server ...

0 likes
1 reply
Sinnbeck's avatar

It depends on if whether you have any env specific things you inject. If you don't, you can just commit the files to git. You might want want to manually transfer the files to test, before you add them. Personally I have pusher keys that is env specific, so I compile on production

1 like

Please or to participate in this conversation.