Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
feat: add fileRelativePath to page
Browse files Browse the repository at this point in the history
* fileRelativePath used to determine if the 404 page is being served
* quickstart details now have the fileRelativePath field
  • Loading branch information
aswanson-nr authored and tabathadelane committed Jan 28, 2022
1 parent d49bace commit 7eda836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
edges {
node {
fields {
fileRelativePath
slug
}
id
Expand Down Expand Up @@ -38,6 +39,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
context: {
id,
layout: 'QuickStartLayout',
fileRelativePath,
},
});
});
Expand Down

0 comments on commit 7eda836

Please sign in to comment.