Handle SSR rendering failures
3.xWhen the SSR engine fails to render a page, the HttpGateway handles the error by dispatching an SsrRenderFailed event. This event contains details such as the error message, error type, stack trace, and source location.
By default, failures are caught and handled gracefully (returning null so the application falls back to client-side rendering). However, you can configure the adapter to throw an exception instead of failing silently, which is useful for E2E testing or strict environments.
Set the following configuration key in config/inertia.php to enable exception throwing:
inertia.ssr.throw_on_error (boolean)