npm install
npm run devOpen the URL shown in the terminal (usually http://localhost:5173).
To preview the production build locally:
npm run build
npm run previewThe site is deployed with the gh-pages package. Publishing builds the app and pushes the output to the gh-pages branch, which GitHub Pages serves.
- Make and commit your changes on
main(or your working branch). - From the project root, run:
npm run deployThis runs npm run build automatically, then publishes the dist folder to gh-pages.
- Wait a minute or two for GitHub Pages to rebuild, then hard-refresh the live site.
In the repo on GitHub: Settings → Pages → Build and deployment, the source should be:
- Branch:
gh-pages - Folder: `/ (root)
If those settings change, npm run deploy may still push files, but the site will not update correctly.
- The production base path is
/(custom domain viapublic/CNAME). Asset URLs usesrc/shared/config.ts(assetBaseUrl). npm run deployrequires push access to this repository and will update the remotegh-pagesbranch directly.