mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
512bf0dc71
Next.js always has request context when evaluating has/missing conditions on headers, redirects, and rewrites. There is no code path where these are evaluated without a request. Making ctx required eliminates ambiguity about what happens when context is missing, and surfaces any future call sites that forget to pass it as compile-time errors instead of silent behavioral bugs. Also fixes deploy.ts matchHeaders call that was missing reqCtx. Co-authored-by: Eray <erayackgoz@gmail.com>