2 items across 2 sections
Production deployment pattern for React + Vite SPAs on GitHub Pages with custom domains. Covers the dist/.git worktree setup, 404.html SPA routing redirect, CNAME handling, Vite base path configuration, and every failure mode encountered deploying TrustSeal and ScamCheck to GitHub Pages with custom subdomains.
React/Vite SPA deployed to GitHub Pages returned 404 on any direct URL or page refresh. Root cause: GitHub Pages serves static files only — client-side routing paths don't map to files.