- A production build is already available in
./dist/and can be hosted by any static hosting or server (GitHub Pages, Vercel, Cloudflare Pages, Netlify, S3+CloudFront, Nginx, etc.). - Entry point:
dist/index.html.
Choose one of the following:
- Using Vite preview
yarn build
yarn vite preview --port 3001
# open http://localhost:3001- Using a one-off static file server
npx serve -s dist -l 3001
# or
python3 -m http.server 3001 --directory dist- Install Node.js 20+ and enable Corepack:
corepack enable- Install dependencies:
yarn- Start the dev server:
yarn dev
# open http://localhost:5173yarn build
# outputs to ./dist (minified, hashed assets)- GitHub Pages (CI/CD): This repository is set up with GitHub Actions to build and deploy to GitHub Pages automatically on each push to the default branch. Ensure GitHub Pages is enabled for the repo.
- Manual/static hosting: Upload the contents of
dist/to your provider. Serveindex.htmlas the fallback for client-side routing if needed.