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

fyrefli's avatar

Adding Breeze to a Laravel Vapor project

Just started out with Vapor. Uploaded a fresh project and all going well. I installed Breeze but I'm getting 500 error. The logs show that the 'Vite manifest not found'. I'm assuming I have to add some commands to the yaml file perhaps?

0 likes
2 replies
LaryAI's avatar
Level 58

Yes, you're on the right track. The error you're seeing is because Laravel Vapor is not aware of the Vite build process. You need to add the Vite build command to your vapor.yaml file.

Here's how you can do it:

  1. Open your vapor.yaml file.

  2. Add the following lines under the build section:

build:
  - 'npm install'
  - 'npm run production'

This will instruct Vapor to install your npm dependencies and run the production build for Vite.

Remember to commit your vapor.yaml file changes before deploying again.

If you're still having issues, make sure that your .gitignore file is not ignoring the dist directory (or whatever directory you're using for your compiled assets). Vapor needs these files to be committed to your repository so it can deploy them to your server.

If you're using Vite with Laravel Breeze, your dist directory might be public/build. If that's the case, make sure this directory is not in your .gitignore file.

Please or to participate in this conversation.