To get familiar with
vite-plugin-ssr
, we recommend to read the React Tour or Vue Tour, or to play with the boilerplates ($ npm init vite-plugin-ssr@latest
).
To add vite-plugin-ssr
to an existing Vite app:
Add vite-plugin-ssr
to your vite.config.js
.
Optionally, if you use a server, add the vite-plugin-ssr
server middleware.
Define _default.page.client.js
and _default.page.server.js
.
Create your first .page.js
file.