diff --git a/resources/js/Pages/server-side-rendering.jsx b/resources/js/Pages/server-side-rendering.jsx index e26c74a4..50408036 100644 --- a/resources/js/Pages/server-side-rendering.jsx +++ b/resources/js/Pages/server-side-rendering.jsx @@ -525,7 +525,22 @@ export default function () { php artisan inertia:stop-ssr `} /> -
+ You may use the inertia:check-ssr
Artisan command to verify that the SSR server is running.{' '}
+ This can be helpful after deployment and works well as a Docker health check to ensure the server is responding as expected.
+
+ By default, a check is performed to ensure the server-side bundle exists before dispatching a request to the SSR server.{' '}
+ 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.{' '}
+ To disable this check, you may set the inertia.ssr.ensure_bundle_exists
configuration value to false
.
+
To run the SSR server on Forge, you should create a new daemon that runs{' '}
php artisan inertia:start-ssr
from the root of your app. Or, you may utilize the built-in Inertia
@@ -536,7 +551,7 @@ export default function () {
php artisan inertia:stop-ssr
command. This will stop the existing SSR server, forcing a new one to
be started by your process monitor.
To run the SSR server on Heroku, update the web
configuration in your Procfile
to run
the SSR server before starting your web server.