-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
28 lines (28 loc) · 1001 Bytes
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
pathPrefix: '/',
siteMetadata: {},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
{
resolve: 'gatsby-source-contentful',
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
environment: process.env.CONTENTFUL_ENVIRONMENT || 'master',
accessToken: process.env.CONTENTFUL_PREVIEW ? process.env.CONTENTFUL_PREVIEW_TOKEN : process.env.CONTENTFUL_DELIVERY_TOKEN,
host: process.env.CONTENTFUL_PREVIEW ? 'preview.contentful.com' : 'cdn.contentful.com',
useNameForId: false
}
},
{
resolve: 'gatsby-plugin-schema-snapshot',
options: {
path: 'schema.gql',
exclude: {
plugins: ['gatsby-source-npm-package-search']
},
update: process.env.GATSBY_UPDATE_SCHEMA_SNAPSHOT
}
}
]
};