Making Jamstack More Flexible with Vercel Edge Middleware
summary
Shows how to push small runtime logic to the CDN using Vercel Edge Middleware with Next.js, creating a middleware.ts at project root that exports a middleware(request) function. The demo logs every request, then narrows execution with a config.matcher = '/', inspects headers, geolocation and cookies, and rewrites or redirects to prebuilt localized or personalized pages. Example: cookie-based homepage rewrite for session continuity works in the demo; other uses shown include A/B tests, rate limiting and auth.
AI-written summary Β· about
related talks
30mJamstack for Complex Apps
42mTo Truly Understand Jamstack, Forget the JAM
35mBuilding for the Edge
43mScalable Multi-Tenant Frontend for an E-Commerce Platform
42mThe Jamstack can do that?!
44mJAMstack: Web Apps at Ludicrous Speed
52mStatic eCommerce JAMstack
01h 17mChallenges in Building Micro Front Ends
