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

beartown's avatar

Inertia with SSR - development workflow

I'm experimenting with Inertia with SSR enabled and so far, so good.

Except I don't quite understand what the dev workflow should be. In order to make the server-side rendering match the actual dynamic components, I need to run npm run build followed by restarting the SSR server: php artisan inertia:start-ssr.

What should I do during development? Disable SSR entirely? Or are there any additional commands or tools to refresh the SSR contents during development? If I don't do this, I'm getting a whole bunch of errors about the server-side response and client-side component mismatch.

Also, if I don't start Inertia's SSR server during development, I'm getting these errors anyway.

0 likes
3 replies
knightspore's avatar

Also looking for a solution here - especially for hydration issues which are minified in production!

Please or to participate in this conversation.