Add some kind of error message when you are creating redirects, but don't have a plugin to act on them #31118
Replies: 4 comments
-
Hrmmmm, this might be me holding it wrong 🍡 |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the issue! Seems reasonable to add some kind of warning (e.g. single line note) to the build output. In theory the API page already mentions that: https://www.gatsbyjs.org/docs/actions/#createRedirect However, I understand that those pages are not too discover able. A dedicated documentation page would also be reasonable to solve this issue in my opinion. |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Description
I guess I expected by default gatsby would make client-side redirects, and then plugin APIs would allow more complex setups - however, a few months down the line I discovered that the redirect API is basically a NOOP unless you have a plugin like
gatsby-plugin-client-side-redirect
installed to actually do something.Took a few bug reports to get there, so it might be worth having a check somewhere at build time that you have any plugins which can act on your redirects?
Steps to reproduce
Create a blank gatsby project, use
createRedirect
viacreatePages
- see nothing happeningExpected result
A warning, or if you want to be really strict, an exception because it's a somewhat broken state
Actual result
No redirects, even though I was using the API right
Environment
N/A - on
gatsby@^2.19.18
Beta Was this translation helpful? Give feedback.
All reactions