From 7eda8369e68b17452faadeac386f8ca1043e7af9 Mon Sep 17 00:00:00 2001 From: aswanson-nr Date: Thu, 27 Jan 2022 14:40:53 -0800 Subject: [PATCH] feat: add fileRelativePath to page * fileRelativePath used to determine if the 404 page is being served * quickstart details now have the fileRelativePath field --- gatsby-node.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gatsby-node.js b/gatsby-node.js index 780394c9..78239374 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -10,6 +10,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => { edges { node { fields { + fileRelativePath slug } id @@ -38,6 +39,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => { context: { id, layout: 'QuickStartLayout', + fileRelativePath, }, }); });