[PR #776] fix(rewrites): include middleware headers in static file responses #837

Open
opened 2026-05-06 13:10:24 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/776
Author: @yunus25jmi1
Created: 4/4/2026
Status: 🔄 Open

Base: mainHead: fix/static-file-rewrites-middleware-headers


📝 Commits (2)

  • f64ea9f fix(rewrites): include middleware headers in static file responses
  • b30ad10 fix(prod-server): serve static files for beforeFiles rewrite targets

📊 Changes

2 files changed (+87 additions, -29 deletions)

View changed files

📝 packages/vinext/src/index.ts (+62 -29)
📝 packages/vinext/src/server/prod-server.ts (+25 -0)

📄 Description

  • Add CONTENT_TYPES allowlist for MIME type detection
  • Apply middleware-set headers (like Set-Cookie) to static file responses
  • Serve static files for beforeFiles and fallback rewrite targets

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/776 **Author:** [@yunus25jmi1](https://github.com/yunus25jmi1) **Created:** 4/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/static-file-rewrites-middleware-headers` --- ### 📝 Commits (2) - [`f64ea9f`](https://github.com/cloudflare/vinext/commit/f64ea9fa457ccc7bc04f294ec1045445c166aaf2) fix(rewrites): include middleware headers in static file responses - [`b30ad10`](https://github.com/cloudflare/vinext/commit/b30ad10ca7ef924768ac439236172b81b785fa40) fix(prod-server): serve static files for beforeFiles rewrite targets ### 📊 Changes **2 files changed** (+87 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `packages/vinext/src/index.ts` (+62 -29) 📝 `packages/vinext/src/server/prod-server.ts` (+25 -0) </details> ### 📄 Description - Add CONTENT_TYPES allowlist for MIME type detection - Apply middleware-set headers (like Set-Cookie) to static file responses - Serve static files for beforeFiles and fallback rewrite targets --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#837
No description provided.