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

fix(gatsby-plugin-netlify): Add an allow list for redirect options #30155

Merged

Conversation

sidharthachatterjee
Copy link
Contributor

Fixes #29779

Currently we add all values to the redirects file for Netlify. This PR changes that behaviour to only do so for values that are known and documented in https://docs.netlify.com/routing/redirects/

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 10, 2021
@sidharthachatterjee sidharthachatterjee force-pushed the sid/ch26635/fix-issue-in-createredirect-that-broke-gatsby branch from abcd857 to a4d684a Compare March 10, 2021 11:32
@LekoArts LekoArts added topic: netlify and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 10, 2021
Copy link

@jaska120 jaska120 left a comment

Choose a reason for hiding this comment

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

Country and Language props should be allowed too

Copy link

@jaska120 jaska120 left a comment

Choose a reason for hiding this comment

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

LGTM

@wardpeet wardpeet added this to To cherry-pick in V2 Release hotfixes via automation Mar 11, 2021
@wardpeet wardpeet added this to To cherry-pick in V3 Release Hotfixes via automation Mar 11, 2021
Copy link
Contributor

@wardpeet wardpeet left a comment

Choose a reason for hiding this comment

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

I'm missing tests but let's get this in :)

@wardpeet wardpeet merged commit 962c4a1 into master Mar 11, 2021
@wardpeet wardpeet deleted the sid/ch26635/fix-issue-in-createredirect-that-broke-gatsby branch March 11, 2021 09:57
pieh pushed a commit that referenced this pull request Mar 12, 2021
@pieh pieh moved this from To cherry-pick to Backport PR opened in V2 Release hotfixes Mar 12, 2021
vladar pushed a commit that referenced this pull request Mar 15, 2021
@vladar vladar moved this from To cherry-pick to Backport PR opened in V3 Release Hotfixes Mar 15, 2021
vladar pushed a commit that referenced this pull request Mar 15, 2021
…30155) (#30261)

(cherry picked from commit 962c4a1)

Co-authored-by: Sidhartha Chatterjee <me@sidharthachatterjee.com>
@vladar
Copy link
Contributor

vladar commented Mar 15, 2021

Published in gatsby-plugin-netlify@3.0.1

@vladar vladar moved this from Backported to Archived in V3 Release Hotfixes Mar 17, 2021
pieh pushed a commit that referenced this pull request Mar 18, 2021
…30155) (#30215)

(cherry picked from commit 962c4a1)

Co-authored-by: Sidhartha Chatterjee <me@sidharthachatterjee.com>
@pieh pieh moved this from Backport PR opened to Backported in V2 Release hotfixes Mar 18, 2021
@pieh pieh moved this from Backported to Archived in V2 Release hotfixes Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

createRedirect broke gatsby-plugin-netlify redirects on 2.32.7
5 participants