Skip to content

Conversation

@ovflowd
Copy link
Member

@ovflowd ovflowd commented Aug 8, 2023

Description

This PR simplifies contribution to the external redirects and internal rewrites by adopting a no-code solution through a JSON file. This JSON file allows contributors to simply add and remove new entries on a JSON file which is easier to read and understand.

If the JSONs are invalid Next.js Build will fail, as a validation step. It is important to add a follow-up PR with docs updates and explaining these redirects/rewrites (pointing to Next.js documentation) (cc @bmuenzenmeyer)

Note: This PR also has a little off-topic change that is removing "wildcard" imports from common .mjs public-facing modules

Validation

Existing Redirects and Rewrites should still work

@ovflowd ovflowd added the infrastructure Issues/PRs related to the Repository Infra label Aug 8, 2023
@ovflowd ovflowd requested a review from a team as a code owner August 8, 2023 22:08
@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 10, 2023 7:20pm

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 93%
92.21% (367/398) 79% (79/100) 88.09% (74/84)

Unit Test Report

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

@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! 🙌

Copy link
Contributor

@bmuenzenmeyer bmuenzenmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didnt run the code locally but it looks like a smart change

@ovflowd who do you want to document this? I ask because you tagged me

@ovflowd
Copy link
Member Author

ovflowd commented Aug 9, 2023

@ovflowd who do you want to document this? I ask because you tagged me

I tagged you kinda to ask if you'd like (and have time) to document this, because I am also pretty overwhelmed with work right now 😢

@ovflowd ovflowd force-pushed the feat/json-file-for-redirects branch from 69f43d7 to 29173ce Compare August 10, 2023 19:19
@ovflowd ovflowd enabled auto-merge August 10, 2023 19:19
@ovflowd ovflowd added this pull request to the merge queue Aug 10, 2023
Merged via the queue into main with commit c15f704 Aug 10, 2023
@ovflowd ovflowd deleted the feat/json-file-for-redirects branch August 10, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Issues/PRs related to the Repository Infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants