Simple React SSR with Vite and Express
MIT License
A simple example of how to use React with Vite Server-Side Rendering and Express.
npm install
Runs the Development Server: server-dev.js
.
Dev site available on: http://localhost:4173
npm run dev
Runs x2 scripts from package.json
npm run build
Runs the Production Server: server-prod.js
. Production site available on: http://localhost:5173
. Disable JavaScript in your Browser and the page will still render.
npm run serve