⚠️
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.

Scaffold new app

To scaffold a new Vite + vite-plugin-ssr app:

With npm:

npm init vite-plugin-ssr@latest

With pnpm:

pnpm create vite-plugin-ssr

With Yarn:

yarn create vite-plugin-ssr

Options:

  • --skip-git: don't initialize a new Git repository

A prompt will let you choose between:

  • react: React + JavaScript
  • react-ts: React + TypeScript
  • vue: Vue + JavaScript
  • vue-ts: Vue + TypeScript