Skip to content

Running Intertia Django with SSR #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lewismunene020 opened this issue Mar 2, 2025 · 2 comments
Open

Running Intertia Django with SSR #69

lewismunene020 opened this issue Mar 2, 2025 · 2 comments

Comments

@lewismunene020
Copy link

I have recently been exploring inertiajs.

It's pretty good but there isnot enough context on how to run it in ssr mode .

Laravel has the commands for php artisan inertia:start-ssr at the start Command(https://github.com/inertiajs/inertia-laravel/blob/2.x/src/Commands/StartSsr.php) .

Can we have such similar command for django to start ssr server that can be used for bundling the application ?

Thank You.

@navya-sammeta
Copy link

navya-sammeta commented Mar 12, 2025

Basically, If I have to guess, In SSR mode, There is a node process that runs as proxy. IMO, Inertia + Django is by default hybrid because the props are fetched as part of the HTML page itself, so it's the middle ground. And most apps don't need SSR. If you do need it, I think you are better to go with next.js/remix

@BrandonShar
Copy link
Collaborator

We could definitely look into making this easier. In Inertia Rails, we advise running the SSR build directly through vite. I don't use SSR myself so I haven't spent much time on it, but I can see if I can set some time aside to make it more user friendly.

Is deployment/starting the build the biggest challenge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants