[PR #595] [MERGED] fix: use page extensions for middleware files #698

Closed
opened 2026-05-06 13:09:37 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/595
Author: @james-elicx
Created: 3/19/2026
Status: Merged
Merged: 3/20/2026
Merged by: @james-elicx

Base: mainHead: opencode/glowing-squid


📝 Commits (2)

  • e6a5704 fix: use page extensions for middleware files
  • fcc053f same thing for instrumentation

📊 Changes

6 files changed (+82 additions, -65 deletions)

View changed files

📝 packages/vinext/src/index.ts (+2 -2)
📝 packages/vinext/src/server/instrumentation.ts (+12 -16)
📝 packages/vinext/src/server/middleware.ts (+19 -36)
📝 tests/features.test.ts (+4 -3)
📝 tests/instrumentation.test.ts (+5 -4)
📝 tests/shims.test.ts (+40 -4)

📄 Description

middleware and proxy files should use next config page extensions where available, similar to routes.


🔄 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/595 **Author:** [@james-elicx](https://github.com/james-elicx) **Created:** 3/19/2026 **Status:** ✅ Merged **Merged:** 3/20/2026 **Merged by:** [@james-elicx](https://github.com/james-elicx) **Base:** `main` ← **Head:** `opencode/glowing-squid` --- ### 📝 Commits (2) - [`e6a5704`](https://github.com/cloudflare/vinext/commit/e6a5704a2757276b98e0a2d1be08d4b3fd2b041a) fix: use page extensions for middleware files - [`fcc053f`](https://github.com/cloudflare/vinext/commit/fcc053f808c0374f389176566c2c22b4d55414e9) same thing for instrumentation ### 📊 Changes **6 files changed** (+82 additions, -65 deletions) <details> <summary>View changed files</summary> 📝 `packages/vinext/src/index.ts` (+2 -2) 📝 `packages/vinext/src/server/instrumentation.ts` (+12 -16) 📝 `packages/vinext/src/server/middleware.ts` (+19 -36) 📝 `tests/features.test.ts` (+4 -3) 📝 `tests/instrumentation.test.ts` (+5 -4) 📝 `tests/shims.test.ts` (+40 -4) </details> ### 📄 Description middleware and proxy files should use next config page extensions where available, similar to routes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 13:09:37 +02:00
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#698
No description provided.