React + Vite frontend for TechMemory, the team's docs library. The API server used to
live in server/ in this same repo — it's been split out to its own repo
(techmemory-server, sibling folder) so it can run on a real Node host
instead of GitHub Pages. See that repo's DEPLOY.md for backend deploy
steps.
npm install
npm run dev
Requests to /api/* are proxied to http://localhost:3001 (see
vite.config.js) — run the server separately alongside this.
- Set the deployed backend's URL as a repo variable: Settings → Secrets
and variables → Actions → Variables → New repository variable,
VITE_API_BASE_URL=https://<your-server>.onrender.com(see.env.example). - Settings → Pages → Build and deployment → Source: GitHub Actions.
- Push to
main—.github/workflows/deploy.ymlbuilds and deploys automatically. vite.config.jssetsbase: "/TechMemoryFE-2026/"for the project-pages URL (https://overture-7421.github.io/TechMemoryFE-2026/). Update it if the repo is renamed, or set it to"/"if you switch to a custom domain (and add apublic/CNAMEfile with the domain).- On the server side, set
ALLOWED_ORIGINSto this Pages URL so CORS allows it.