Astro middleware pipeline with Cloudflare Workers edge runtime concurrency
Astro middleware runs on every SSR or hybrid request before page rendering and API routes. When deployed with an edge adapter such as Cloudflare Workers, Vercel Edge Functions or Netlify Edge Functions, the middleware executes inside the runtime's isolate model. The pipeline is serial by design, with each middleware awaiting next(). Under concurrent requests