This example deploys a React single-page app built with Vite, served by a Node static server (Express) with SPA fallback, for deployment on Seenode.
See the full guide: Deploy React SPA on Seenode.
npm install
npm run client:install
npm run client:build
npm startVisit http://localhost:8080.
- Connect this repo in the Seenode dashboard (New Web Service).
- Set commands:
- Build:
npm install && npm run client:install && npm run client:build - Start:
node server.js
- Build:
- Set Port field to
8080(matchesserver.js). - Deploy.
/
├─ server.js # Express static server + SPA fallback
├─ package.json # Root scripts and Express dep
└─ client/ # React app (Vite)
├─ index.html
├─ package.json
├─ vite.config.js
└─ src/
├─ main.jsx
└─ App.jsx