Created
October 10, 2018 00:28
-
-
Save cwlsn/a1fddc69de5e668a23e7f6fa09741080 to your computer and use it in GitHub Desktop.
Basic Contentful Source Gatsby Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dotenv = require("dotenv"); | |
if (process.env.ENVIRONMENT !== "production") { | |
dotenv.config(); | |
} | |
const { spaceId, accessToken } = process.env; | |
module.exports = { | |
plugins: [ | |
{ | |
resolve: "gatsby-source-contentful", | |
options: { | |
spaceId, | |
accessToken | |
} | |
} | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment