Skip to content

Commit d7fae1d

Browse files
committed
Update server-side-rendering.jsx
1 parent 3a0e6f5 commit d7fae1d

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

resources/js/Pages/server-side-rendering.jsx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,22 @@ export default function () {
525525
php artisan inertia:stop-ssr
526526
`}
527527
/>
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>
529544
<P>
530545
To run the SSR server on Forge, you should create a new daemon that runs{' '}
531546
<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 () {
536551
<Code>php artisan inertia:stop-ssr</Code> command. This will stop the existing SSR server, forcing a new one to
537552
be started by your process monitor.
538553
</P>
539-
<H2>Heroku</H2>
554+
<H3>Heroku</H3>
540555
<P>
541556
To run the SSR server on Heroku, update the <Code>web</Code> configuration in your <Code>Procfile</Code> to run
542557
the SSR server before starting your web server.

0 commit comments

Comments
 (0)