⚠️
The vite-plugin-ssr project has been renamed Vike.
  • If you are already using vite-plugin-ssr, then migrate to Vike.
  • For new projects, don't use vite-plugin-ssr but use Vike instead.
It follows the same philosophy: Vike itself (without extensions) is unopinionated and lets you integrate tools with architectural freedom.

Vue Router & React Router

While, in principle, it's possible to use vite-plugin-ssr with React Router or Vue Router by using the onBeforeRoute() hook, we strongly recommend against doing so.

If you want a feature provided by Vue Router or React Router that vite-plugin-ssr is missing, then open a new feature request.