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

ideasfera's avatar

Laravel jetstream (inertia). Problems on deploy

I've developed a very simple project with laravel jetstream using inertia as stack. Everything is fine and works like a charm, but when I tried to deploy the project in production I've got lots of errors mainly with the routes The home page is loaded correctly but when I click the login link it fails to open the login form but it is redirected to home. If I force the login writing the url manually it seems it cannot find app.js and app.css files. that are present. I don't know what's going on

There are special operations to do during the deploy with jetstream?

0 likes
3 replies
tykus's avatar

If your compiled assets are not included in your VCS, then you will need to build the assets as part of the deployment process using npm run prod

ideasfera's avatar

What do you mean by compiled assets? If you mean app.js and app.css they are passed with git clone and are present on the server. If you mean something else it could be the problem...

1 like

Please or to participate in this conversation.