1 article on Middleware · updated Jun 30, 2026
Gate auth with a locally verified JWT and run A/B tests with no flash of wrong content, using Vercel middleware (proxy.ts in Next.js 16).