question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

createRedirect broke gatsby-plugin-netlify redirects on 2.32.7

See original GitHub issue

Hi,

newly merged PR and published as version 2.32.7 broke gatsby-plugin-netlify redirects implementation. The release (https://github.com/gatsbyjs/gatsby/pull/29742) introduced a new prop ignoreCase which is passed to the build output of _redirects file on gatsby-plugin-netlify https://github.com/gatsbyjs/gatsby/blob/e79fc6b8b0da2bb5aaec8e0ff06073af9c466401/packages/gatsby-plugin-netlify/src/create-redirects.js#L46

I am not sure which way is right: introducing a new prop which with default value of false instead of undefined or the way gatsby-plugin-netlify including all the props to the output.

The result now:

  • _redirects file outputs ignoreCase=false by default, which in turn is not recognized on Netlify and therefore the redirects are not working.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
ohsnapitscolincommented, Mar 4, 2021

Following up here, did this fix go out? We’re running into the same issue and had to revert to restore our redirects functionality. Upgraded to the latest version of gatsby-plugin-netlify but still seeing the issue.

6reactions
mlensercommented, Feb 26, 2021

We can confirm the same problem. Thanks for looking into it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

gatsby-plugin-netlify-redirect
Redirects. You can create redirects using the createRedirect action. In addition to the options provided by the Gatsby API, you can pass these...
Read more >
Redirect rules from months no longer parsed the same way? - Support
The redirect rules were consistently the same and working since las… ... e.g. createRedirect broke gatsby-plugin-netlify redirects on 2.32.7 · Issue #29779 ...
Read more >
How To Add Netlify Redirects To A Gatsby Site
Option 2 — Adding redirects via createRedirect action. Make sure you have installed gatsby-plugin-netlify (see here).
Read more >
gatsby/CHANGELOG.md - UNPKG
4060, - **gatsby-plugin-netlify:** Allow status codes in redirects ([#11255](https://github.com/gatsbyjs/gatsby/issues/11255)) ...
Read more >
gatsby-plugin-netlify | Yarn - Package Manager
This plugin adds support for Gatsby SSR and DSG on Netlify, and handles Gatsby redirects and headers. The plugin works by automatically generating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found