From 71e5babaf1a605d13baf8f0aec9fef24edce0269 Mon Sep 17 00:00:00 2001 From: Hannu H Date: Fri, 26 Jun 2026 14:17:39 +0000 Subject: [PATCH] Fix README: build+preview for local run, dev only for development --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0950b3a..da3b4b5 100644 --- a/README.md +++ b/README.md @@ -62,18 +62,18 @@ Requires Node.js 20+. git clone https://git.hannu.be/dev-hannu/disc-golf-tracker.git cd disc-golf-tracker 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 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.).