mehrancodes / laravel-harbor

a cli tool to Quickly create on-demand preview environment for your app on Laravel Forge.
https://www.laravel-harbor.com
MIT License
75 stars 7 forks source link

Add support for Inertia.js SSR #86

Closed mehrancodes closed 7 months ago

mehrancodes commented 7 months ago

Fixes #83

Add the new env 'INERTIA_SSR_ENABLED=true' to enable Inertia.js SSR support via Laravel Harbor.

Laravel Harbor automatically adds a new Daemon for Inertia command php artisan inertia:start-ssr as well as including the command php artisan inertia:stop-ssr to the deploy script (if it not exist).

Due to the fact that the Laravel Forge does not provide support for enabling Inertia.js SSR via their API, Laravel Harbor adds support for it manually.