-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
42 lines (39 loc) · 961 Bytes
/
gatsby-config.js
File metadata and controls
42 lines (39 loc) · 961 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const contentful = require('contentful');
const manifestConfig = require('./manifest-config');
require('dotenv').config();
const { ACCESS_TOKEN, SPACE_ID, ANALYTICS_ID } = process.env;
const plugins = [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-manifest',
options: manifestConfig,
},
'gatsby-plugin-styled-components',
{
resolve: 'gatsby-source-contentful',
options: {
spaceId: SPACE_ID,
accessToken: ACCESS_TOKEN,
},
},
'gatsby-transformer-remark',
'gatsby-plugin-offline',
'gatsby-plugin-netlify',
{
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
googleAnalytics: {
trackingId: ANALYTICS_ID,
cookieName: 'gdpr-accepted', // default is gatsby-gdpr-google-analytics
anonymize: false, // default is true
},
environments: ['production'],
},
},
];
module.exports = {
siteMetadata: {
isMediumUserDefined: false,
},
plugins,
};