Skip to content

Commit

Permalink
Use relative directories for groq cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcaloon committed May 19, 2020
1 parent f95c277 commit eb63223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { runQuery } = require( './index' );
const { reporter } = require( './utils' );

// TODO
const ROOT = process.env.INIT_CWD;
const ROOT = path.resolve( __dirname, '../..' );
const GROQ_DIR = process.env.NODE_ENV === 'development' ? `${ROOT}/.cache/groq` : `${ROOT}/public/static/groq`;


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-groq",
"description": "Gatsby plugin for using GROQ in place of GraphQL",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.4",
"author": "Kevin McAloon <[email protected]>",
"keywords": [
"gatsby"
Expand Down

0 comments on commit eb63223

Please sign in to comment.