This guide will explain how to add server-side rendering (SSR) to an existing React Inertia application.
Note, if you're using the Ziggy library, you're going to run into issues with SSR. While it is technically possible to use Ziggy in SSR, it requires a bunch of extra configuration, which this guide won't cover.
Upgrade to the latest version of Inertia (version 0.9.0 or newer):