Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: node_env as global env #5613

Merged
merged 7 commits into from
Aug 8, 2023
Merged

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

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?

middleware.ts Outdated Show resolved Hide resolved
Co-authored-by: Steven <steven@ceriously.com>
Signed-off-by: Claudio Wunder <cwunder@gnome.org>
@github-actions
Copy link

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.

2 participants