🔁Pitfalls of redirecting all paths to an external domain with vercel.json
A walkthrough of moving a Next.js (output: 'export') site from Vercel to GitHub Pages and turning the Vercel deployment into a redirect-only surface via vercel.json. Documents five or six attempts that failed for non-obvious reasons (framework detection, output validation, path-to-regexp quirks around trailing slashes) and the final config that actually works.


















































