Example of adding SSR/SSG to an existing Vite + React app, using Vike.
See vue
branch for the same but with Vite + Vue.
The migration is progressive: each of the following steps results in a working app.
Note
This enables you to get started quickly while, over time and at your own pace, progressively migrating to the full Vike experience.
Alternatively, instead of migrating in a progressive fashion, you can skip Step 3+4
and directly migrate to vike-react
.
Note
If you have multiple pages, consider temporarily using a catch-all route and creating proper pages later.
Either:
Note
Instead of using vike-react
, you can piggyback the features of the following: