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

oncebar's avatar

SSR - components not rendering on shared hosting

welcome everybody. I have programmed a website using Laravel + Inertiajs + Vuejs + Vite and added SSR to it,

To run the site on the localhost

run php artisan serve
npm run dev
npm run build
node bootstrap/ssr/ssr.mjs

It Shows well and the code appears fine when I press Ctrl + U to see the source

But when I upload the site on a shared hosting, the site appears fine, and the code does not appear when I press Ctrl + U to see the source.

And that's bad with SEO.

how i can fix this?

0 likes
7 replies
vincent15000's avatar

What is your exact question ? Is it about SSR ? SSR is in the title of your post but you don't say anything about this in the body of your post.

vincent15000's avatar

@oncebar On shared webhostings, you cannot run any custom server like the one needed for InertiaJS SSR. I think that you need to have a VPS or a dedicated server.

vincent15000's avatar

@oncebar I think no, because shared webhostings only let you copy your code on the remote server. If you need to install some specific packages on the remote server, you need a VPS or a dedicated server.

Please or to participate in this conversation.