mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #305] [MERGED] refactor: extract applyMiddlewareRequestHeaders into config-matchers #462
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#462
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/305
Author: @james-elicx
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/7/2026
Merged by: @james-elicx
Base:
main← Head:refactor/extract-apply-middleware-request-headers📝 Commits (2)
16ec70arefactor: extract applyMiddlewareRequestHeaders into config-matchersf10a781fix(test): update deploy test to reflect applyMiddlewareRequestHeaders refactor📊 Changes
4 files changed (+72 additions, -59 deletions)
View changed files
📝
packages/vinext/src/config/config-matchers.ts(+52 -0)📝
packages/vinext/src/deploy.ts(+7 -32)📝
packages/vinext/src/server/prod-server.ts(+8 -22)📝
tests/deploy.test.ts(+5 -5)📄 Description
Moves the duplicated x-middleware-request-* unpacking logic from
prod-server.tsanddeploy.tsinto a sharedapplyMiddlewareRequestHeaders()inconfig-matchers.ts.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.