Files
github-readme-stats/generator/frontend
shayandClaude Opus 5 9b5a13f26b fix(frontend): resolve the profile README link against HEAD, not main.
The link hardcoded /edit/main/README.md, so anyone whose profile repo
still defaults to master got a 404. GitHub resolves HEAD to the default
branch, verified against repos where /blob/main/ 404s and /blob/HEAD/
returns 200.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwMoSbmK77Ph7XaV5YnAdS
2026-08-25 08:28:41 -07:00
..

Frontend (Vite + React)

Part of the generator service. Sources live here; the production build is served as static files by the generator's Flask app (at /) and produced by the generator's Dockerfile.

Dev

npm install
VITE_GENERATOR_URL=http://localhost:5002 VITE_EDGE_URL=http://localhost:5003 npm run dev

Vite proxies /api/* to the Flask app at :5002.

Build

npm run build
# produces dist/ which is copied into generator/src/static/ by the Docker build