Jon Seitel
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
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?
Jon Seitel
Item authorHey @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!
Jon Seitel
Item authorOther 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?
Change default SSR path for inertia.js
-
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