Vite SSR template with Pnpm Monorepo, support React@18 and TypeScript
pnpm
fastify@3
vite@2
typescript@4
react@18
: @emotion/react
+ react-router@6
+ react-helmet-async
svelte@3
eslint
husky@6
With node.js 16 & pnpm, default app is
react-app
, if you want to usesvelte-app
, you can editserver/fastify.ts
to use it. If you don't needsvelte-app
, just delete it.
You can replace @my-monorepo
globally with your monorepo space.
git clone https://github.com/wzhzzmzzy/vite-ssr-monorepo-template
pnpm i
pnpm run dev
open https://localhost:3001
pnpm run build:react # use build:svelte if you need
pnpm run serve