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.
Firebase Auth login succeeded but session was lost on every page refresh after moving to a custom domain. Root cause: the custom domain was not added to Firebase Console's Authorized Domains list for the Authentication project. Session cookies and token refresh calls require the domain to be explicitly authorized.