Allow 404.js to be customized with pageContext supplied by gatsby-node.js #16176
Replies: 7 comments 5 replies
-
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. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks again for being part of the Gatsby community! |
Beta Was this translation helpful? Give feedback.
-
Hi @aaronshaf, Did you find a way to populate |
Beta Was this translation helpful? Give feedback.
-
I believe you can do this with a Something like this:
|
Beta Was this translation helpful? Give feedback.
-
I need to insert context into my 404 page from a query, but the object passed into |
Beta Was this translation helpful? Give feedback.
-
@chrispytoes I'm running into the exact same issue and as far as I can tell you can't make queries within |
Beta Was this translation helpful? Give feedback.
-
This is late, but it might be helpful if someone pumps into the same challenge. I managed to work around this by creating the 404 pages programmatically inside gatsby-node.js
templates/404.js
One thing to note, Gatsby will complain about the missing |
Beta Was this translation helpful? Give feedback.
-
My use-case:
I'd like to generate a 404 page from some of the same data that is used to generate my normal pages.
Beta Was this translation helpful? Give feedback.
All reactions