Files
github-readme-stats/generator/frontend
shayandClaude Opus 5 02e7270440 feat(seo): add a migration landing page and list it in the sitemap
gh-stats.com had exactly one indexable URL. The app is a client-rendered
SPA with no content routes, so nothing ranked for anything but the brand
name, and acquisition stopped whenever a push channel stopped.

This adds a static page targeting the migration demand from
anuraghazra/github-readme-stats, which is marked no longer maintained.
Content is reused from the README's migration section. Vite copies
public/ into dist/, which the Dockerfile copies to src/static/, and the
Flask catch-all serves static paths before falling back to index.html,
so this needs no routing change.

It carries the same GA4 stream as index.html so the page is measurable
rather than another unattributed channel.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HPCsXoXrazZsFpxdLi8Pvn
2026-09-06 13:15:08 -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