This repository now contains a minimal React + Vite site configured for GitHub Pages.
Quick start
-
Install dependencies:
npm install
-
Run a dev server:
npm run dev
-
Build for production (this writes output to the
docs/folder):npm run build
Deployment options
- Automatic (recommended): a GitHub Actions workflow is included at
.github/workflows/pages.yml. Pushing tomainwill run the build and publish thedocs/output to GitHub Pages. - Manual: run
npm run build, commit the generateddocs/folder tomain, then set the repository's Pages source tomainbranch and the/docsfolder.
Notes
- Vite is configured to output to
docs/and usesbase: './'invite.config.tsso assets are relative and compatible with Pages. - If you plan to use client-side routes, prefer hash-based routing (e.g. React Router's
HashRouter) or add a404.htmlthat redirects toindex.htmlto avoid 404s on refresh.
Files added/changed
package.json,vite.config.ts,index.html,src/(React app),.github/workflows/pages.yml.
If you want I can also:
- Commit and push these changes for you.
- Add a small example component or migrate existing pages into React components.