File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,22 @@ export default function () {
525
525
php artisan inertia:stop-ssr
526
526
` }
527
527
/>
528
- < H2 > Laravel Forge</ H2 >
528
+ < P >
529
+ You may use the < Code > inertia:check-ssr</ Code > Artisan command to verify that the SSR server is running.{ ' ' }
530
+ This can be helpful after deployment and works well as a Docker health check to ensure the server is responding as expected.
531
+ </ P >
532
+ < CodeBlock
533
+ language = "bash"
534
+ children = { dedent `
535
+ php artisan inertia:check-ssr
536
+ ` }
537
+ />
538
+ < P >
539
+ By default, a check is performed to ensure the server-side bundle exists before dispatching a request to the SSR server.{ ' ' }
540
+ In some cases, such as when your app runs on multiple servers or is containerized, the web server may not have access to the SSR bundle.{ ' ' }
541
+ To disable this check, you may set the < Code > inertia.ssr.ensure_bundle_exists</ Code > configuration value to < Code > false</ Code > .
542
+ </ P >
543
+ < H3 > Laravel Forge</ H3 >
529
544
< P >
530
545
To run the SSR server on Forge, you should create a new daemon that runs{ ' ' }
531
546
< Code > php artisan inertia:start-ssr</ Code > from the root of your app. Or, you may utilize the built-in Inertia
@@ -536,7 +551,7 @@ export default function () {
536
551
< Code > php artisan inertia:stop-ssr</ Code > command. This will stop the existing SSR server, forcing a new one to
537
552
be started by your process monitor.
538
553
</ P >
539
- < H2 > Heroku</ H2 >
554
+ < H3 > Heroku</ H3 >
540
555
< P >
541
556
To run the SSR server on Heroku, update the < Code > web</ Code > configuration in your < Code > Procfile</ Code > to run
542
557
the SSR server before starting your web server.
You can’t perform that action at this time.
0 commit comments