-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
executable file
·46 lines (43 loc) · 1.06 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
let activeEnv =
process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || "development"
console.log(`Using environment config: '${activeEnv}'`)
require("dotenv").config({
path: `.env.${activeEnv}`,
})
module.exports = {
siteMetadata: {
title: `Gatsby with Glamor`,
},
plugins: [
`gatsby-plugin-glamor`,
`gatsby-transformer-json`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: `UA-98210236-2`,
},
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography.js`,
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-cookiehub`,
options: {
// your cookiehub widget ID
cookihubId: `1af90ac3`,
// your google analytics tracking id
trackingId: `UA-98210236-2`,
gtagId: true,
// Puts tracking script in the head instead of the body
head: false,
// enable ip anonymization
anonymize: true,
},
},
],
};