Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.05 KB

File metadata and controls

42 lines (32 loc) · 1.05 KB

Vue SPA with Node Static Server on Seenode

This example deploys a Vue 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 Vue SPA on Seenode.

Run locally

npm install
npm run client:install
npm run client:build
npm start

Visit http://localhost:8080.

Deploy on Seenode

  1. Connect this repo in the Seenode dashboard (New Web Service).
  2. Set commands:
    • Build: npm install && npm run client:install && npm run client:build
    • Start: node server.js
  3. Set Port field to 8080 (matches server.js).
  4. Deploy.

Project layout

/
├─ server.js           # Express static server + SPA fallback
├─ package.json        # Root scripts and Express dep
└─ client/             # Vue app (Vite)
   ├─ index.html
   ├─ package.json
   ├─ vite.config.js
   └─ src/
      ├─ main.js
      ├─ App.vue
      └─ style.css