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