mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #48] [MERGED] fix(config): respect has/missing conditions in next.config headers #270
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#270
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/48
Author: @tomasgferreira
Created: 2/25/2026
Status: ✅ Merged
Merged: 2/28/2026
Merged by: @southpolesteve
Base:
main← Head:fix/config-headers-has-missing📝 Commits (3)
6ea08f7fix(config): respect has/missing conditions in next.config headersf89d8dfchore: add backward-compat comment for optional ctx in matchHeaders280237efix: wire has/missing conditions through redirects and rewrites in Pages Router dev📊 Changes
9 files changed (+208 additions, -58 deletions)
View changed files
📝
packages/vinext/src/config/config-matchers.ts(+11 -0)📝
packages/vinext/src/config/next-config.ts(+2 -0)📝
packages/vinext/src/index.ts(+51 -40)📝
packages/vinext/src/server/app-dev-server.ts(+11 -6)📝
packages/vinext/src/server/prod-server.ts(+1 -1)📝
tests/app-router.test.ts(+1 -1)📝
tests/e2e/app-router/config-redirect.spec.ts(+33 -10)📝
tests/fixtures/app-basic/next.config.ts(+13 -0)📝
tests/shims.test.ts(+85 -0)📄 Description
Fixes
next.config.headers()conditional matching by addinghas/missingsupport inmatchHeaders, wiring request context through dev/prod paths, updatingNextHeadertypes, and enabling coverage with new unit + e2e tests for header/cookie/query conditions (including backward compatibility when no context is provided).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.