Run build before vite preview to avoid stale dist.

Adds prepreview hook so `npm run preview` always serves the latest production bundle.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
defiQUG
2026-05-27 06:24:54 -07:00
co-authored by Cursor
parent 22a889fb91
commit 51dffd79ca
+1
View File
@@ -10,6 +10,7 @@
"prebuild": "npm run brand:export",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"prepreview": "npm run build",
"preview": "vite preview",
"deploy": "npm run build && gh-pages -d dist",
"diagram:png": "node scripts/export-architecture.mjs --format=png",