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

theoutfit's avatar

Jetstream Inertia + Vapor + SSR + Vite

Hey all,

I'm struggling to get a SSR working on Vapor in a Jetstream Inertia build which uses Vite as the build tool.

There was a great approach for this using the Sidecar package, but the sidecar-inertia package (https://github.com/hammerstonedev/sidecar-inertia) only supports Webpack and the maintainer hasn't responded to any of the issues or pull requests regarding using Vite.

Where Vite is the new default build tool for new Laravel packages, I'm sure this is going to start coming up more and more. Was wondering if anyone has found a workable solution.

Thanks so much for any help!

0 likes
8 replies
theoutfit's avatar

@Sinnbeck I tried this package as well, but it has some issues running locally. The developer was very kind and said they were looking into some solutions, so I'll definitely keep an eye on it.

Sinnbeck's avatar

@theoutfit ok. Best bet might be fork the original package and implement it yourself? Maybe use the pr for that. Or wait for the other to fix it

1 like
theoutfit's avatar

@Sinnbeck Yeah - that was my plan if there were no other solutions. Just want to maintain as little code as possible, whenever possible. :)

Sinnbeck's avatar

@theoutfit yeah completely understand. Sadly it seems noone is doing anything else currently. And I think Aaron is busy with his sql course and won't do package work for a while

1 like
theoutfit's avatar

@Sinnbeck We all get busy!

It's kind of an interesting gap in the ecosystem. With SPAs being all the rage these days (for better or worse) SSR is just going to become more and more of a requirement.

la-bas's avatar

Any news about this? Seems like giving up Vapor and move to a VPS is the only solution right now?

Please or to participate in this conversation.