Private
Public Access
1
0

Fix README: build+preview for local run, dev only for development

This commit is contained in:
2026-06-26 14:17:39 +00:00
parent d281ef5ccd
commit 71e5babaf1
+4 -4
View File
@@ -62,18 +62,18 @@ Requires Node.js 20+.
git clone https://git.hannu.be/dev-hannu/disc-golf-tracker.git git clone https://git.hannu.be/dev-hannu/disc-golf-tracker.git
cd disc-golf-tracker cd disc-golf-tracker
npm install npm install
npm run dev npm run build
npm run preview # serves the built app at http://localhost:4173
``` ```
Open [http://localhost:5173](http://localhost:5173). `npm run dev` is only needed if you're actively editing the code (gives you hot reload).
--- ---
## Build & deploy ## Deploy
```bash ```bash
npm run build # outputs to dist/ npm run build # outputs to dist/
npm run preview # preview the production build locally
``` ```
The `dist/` folder is plain static files — drop it on any web server or static host (Caddy, Nginx, Netlify, Vercel, GitHub Pages, etc.). The `dist/` folder is plain static files — drop it on any web server or static host (Caddy, Nginx, Netlify, Vercel, GitHub Pages, etc.).