Technical notes on web development, DevOps, and AI integration.
1 article
Replace static mockup screenshots with real Next.js routes clients can open without a session, using an explicit public path list in the proxy file.
TL;DR: The blank preview problem came from mockup routes sitting behind auth, but loosening authentication for the whole app was never an option. Next.js's new root-level proxy file exempts mockup routes from authorization via an explicit public paths list and config matcher, leaving authentication untouched. Mockup routes should use fixture data only, and every route gets tested both ways.