Skip to content

Commit

Permalink
reconfigure preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejch committed Feb 18, 2020
1 parent 438bc0e commit c0ebb08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,14 @@ module.exports = {
projectId: '1bb2313f-2550-0025-06d9-f3e5065607c0',
previewApiKey: process.env.KONTENT_PREVIEW_API_KEY,
globalQueryConfig: {
usePreviewMode: process.env.KONTENT_PREVIEW_API_KEY ? true : false,
usePreviewMode: process.env.NODE_ENV === "development",
},
typeResolvers: []
},
languageCodenames: [
"default"
]
],
enableLogging: process.env.NODE_ENV === "development",
}
},
{
Expand Down

0 comments on commit c0ebb08

Please sign in to comment.