From b5fa8da332e640566092de9862bd0fa98a689c71 Mon Sep 17 00:00:00 2001 From: Jakub Bebjak Date: Tue, 10 Nov 2020 15:36:40 +0100 Subject: [PATCH] fix: update static queries dir --- packages/gatsby-plugin-graphql-component/gatsby-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-graphql-component/gatsby-node.js b/packages/gatsby-plugin-graphql-component/gatsby-node.js index f041c72..2061e0e 100644 --- a/packages/gatsby-plugin-graphql-component/gatsby-node.js +++ b/packages/gatsby-plugin-graphql-component/gatsby-node.js @@ -86,7 +86,7 @@ exports.onPreBuild = async ({ store }) => { store.getState().staticQueryComponents.forEach(value => { promises.push( new Promise((resolve, reject) => { - fs.readFile(path.join(directory, `public`, `static`, `d`, `${value.hash}.json`), `utf-8`) + fs.readFile(path.join(directory, `public`, `page-data`, `sq`, `d`, `${value.hash}.json`), `utf-8`) .then(data => { const result = JSON.parse(data)