-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: introduced json file for redirects #5615
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📦 Next.js Bundle Analysis for nodejs.orgThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
bmuenzenmeyer
left a comment
There was a problem hiding this 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
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 😢 |
Signed-off-by: Claudio Wunder <cwunder@gnome.org>
69f43d7 to
29173ce
Compare
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
.mjspublic-facing modulesValidation
Existing Redirects and Rewrites should still work