Jon Seitel

Jon Seitel

Under review

Hi there, While setting up my project, I noticed that the path for inertia SSR defaults to:

public/js/ssr.js

The default path is actually:

bootstrap/cache/ssr.mjs

At least it is as of Laravel 10 / Inertia 1.0. Obviously a low priority item but would be nice to align the default setting with the default for the framework.

Thank you for your consideration!

Dennis

Dennis

·
·

Actually, in fact, as I read here: https://inertiajs.com/server-side-rendering#running-the-ssr-server

You don't need this all together, you can just run a daemon with artisan command?

no votes yet
Jon Seitel

Jon Seitel

Item author
·
·

Hey @Dennis, sorry for the late follow up here.

I can confirm that manually adding this to the server daemons does indeed work:

php /home/ploi/{SITE}/artisan inertia:start-ssr

So I guess the request would be to change the UI in that panel to have a button that adds the appropriate daemon, much the way it does for Horizon.

Thanks!

no votes yet
Jon Seitel

Jon Seitel

Item author
· · Edited
·

Other thing worth mentioning is that inertia users should put the following in their deploy scripts:

php artisan inertia:stop-ssr;

Maybe we'd want to conditionally add that to the deploy script suggestions as well?

1 total vote
thanasisxan

Change default SSR path for inertia.js

1 total vote
Jon Seitel
  • Dennis moved item to board Under review

    1 year ago
  • Jon Seitel moved item to project Panel Requests

    1 year ago
  • Jon Seitel created the item

    1 year ago