Skip to content

Conversation

@ovflowd
Copy link
Member

@ovflowd ovflowd commented Aug 8, 2023

Description

This PR removes our dynamic implementation of Middlewares, as discussed on #5604, since it is a Next.js limitation to support dynamic matchers and to reduce the number of invocations on our Edge Middleware.

Validation

This is validated by the Documentation of Next.js and after validating the indeed the amount of Edge Middleware invocations reduces.

@ovflowd ovflowd requested a review from a team as a code owner August 8, 2023 21:20
@vercel
Copy link

vercel bot commented Aug 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2023 10:09pm

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 93%
92.42% (366/396) 79% (79/100) 88.09% (74/84)

Unit Test Report

Tests Skipped Failures Errors Time
45 0 💤 0 ❌ 0 🔥 8.531s ⏱️

@ovflowd
Copy link
Member Author

ovflowd commented Aug 8, 2023

@styfle do you have any idea why Windows builds are failing saying that "npm" is not a recognised command? Never seen this (https://github.com/nodejs/nodejs.org/actions/runs/5802085672/job/15727733041?pr=5613) could that be due to strict env?

Co-authored-by: Steven <[email protected]>
Signed-off-by: Claudio Wunder <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

📦 Next.js Bundle Analysis for nodejs.org

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@ovflowd
Copy link
Member Author

ovflowd commented Aug 8, 2023

cc @nodejs/website I'm fast-tracking this as we're overusing a lot of Edge Middleware Invocations on our Vercel Cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-track Fast Tracking PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants