Astro Middleware vs. Adapter Static Asset Serving: Auth Bypass Risk in Hybrid Rendering
Integration Boundary Astro's hybrid rendering mode ( output: 'hybrid' ) splits routes into prerendered static pages and server-rendered endpoints. Middleware is intended to provide cross-cutting concerns like authentication, but the framework delegates static asset serving to the deployment adapter (Node, Vercel, Netlify, Cloudflare). This creates an integra