Skip to main content

Server-Side Rendering (SSR)

Server-side rendering (SSR) allows your JavaScript-powered pages to be pre-rendered on the server. This means that when a visitor accesses your application, they receive fully-rendered HTML immediately, improving perceived performance and making your site easier to index by search engines.

SSR Support

Both Peak and our Breeze theme come with SSR support enabled out of the box.

Note: If you plan to use SSR in your project, it's important to use libraries and components that are compatible with server-side rendering to avoid runtime issues.

Running the SSR Server

To start the SSR server locally, run the following Artisan command:

php artisan inertia:start-ssr

This will launch the Node-based SSR server responsible for rendering your Inertia pages on the server.

Learn More

For additional information and advanced configuration options, refer to the official Inertia.js SSR documentation: 👉 https://inertiajs.com/server-side-rendering