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 () {
524524 php artisan inertia:stop-ssr
525525 ` }
526526 />
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 >
528543 < P >
529544 To run the SSR server on Forge, you should create a new daemon that runs{ ' ' }
530545 < 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 () {
535550 < Code > php artisan inertia:stop-ssr</ Code > command. This will stop the existing SSR server, forcing a new one to
536551 be started by your process monitor.
537552 </ P >
538- < H2 > Heroku</ H2 >
553+ < H3 > Heroku</ H3 >
539554 < P >
540555 To run the SSR server on Heroku, update the < Code > web</ Code > configuration in your < Code > Procfile</ Code > to run
541556 the SSR server before starting your web server.
You can’t perform that action at this time.
0 commit comments