playbook/antigravity-awesome-skills/plugins/antigravity-awesome-skills-.../skills/vercel-optimize/references/support-topics/astro-edge-middleware-scope.md

1012 B

id title status candidateKinds frameworks priority citations maxBriefChars
astro-edge-middleware-scope Astro edge middleware scope active
middleware_heavy
astro@*
88
https://vercel.com/docs/frameworks/frontend/astro
https://docs.astro.build/en/guides/integrations-guide/vercel/
800

Investigation Brief

Astro middleware can run at the edge for broad request sets. If middleware volume is high, prove which paths actually need interception.

Evidence To Check

Use middleware invocation share and top paths. Inspect adapter middleware mode, middleware source, auth/redirect logic, and whether static assets, prerendered pages, or public pages are being intercepted.

Do Not Recommend When

Do not bypass required auth, locale, header, or routing logic. Do not move global middleware work into every page when the current scope is already minimal.

Verification

Name the middleware share, dominant paths, current middleware mode, and exact source or config line to narrow.