-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
95 lines (94 loc) · 2.72 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
require('dotenv').config();
const googleCredentials = require('./credentials.json');
const siteUrl = 'https://opinionlibrary.com';
const description =
'What do change.org users think about mask mandates? A website that allows to understand the language used to express different positions on the mask mandate issue in the United States';
module.exports = {
// pathPrefix: '/opinion-library',
siteMetadata: {
title: 'Opinion Library',
titleTemplate: '%s • Opinion Library',
description,
siteUrl, // No trailing slash allowed!
image: '/ident-bumper.jpg', // Path to your image you placed in the 'static' folder
},
plugins: [
'gatsby-plugin-postcss',
'gatsby-plugin-image',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: 'src/images/favicon.png',
},
},
'gatsby-plugin-mdx',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: './src/images/',
},
__key: 'images',
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: './src/pages/',
},
__key: 'pages',
},
`gatsby-transformer-json`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/data/`,
},
},
{
resolve: 'gatsby-source-google-spreadsheet',
options: {
spreadsheetId: process.env.COMMENTI_SPEADSHEET_ID,
typePrefix: 'Sheets',
credentials: googleCredentials,
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /\.component\.svg$/, // See below to configure properly
},
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
'G-Y66XEQ19XF', // Google Analytics / GA
],
// This object gets passed directly to the gtag config command
// This config will be shared across all trackingIds
gtagConfig: {
optimize_id: 'OPT_CONTAINER_ID',
anonymize_ip: true,
cookie_expires: 0,
},
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: true,
// Setting this parameter is also optional
respectDNT: true,
// Avoids sending pageview hits from custom paths
// exclude: ["/preview/**", "/do-not-track/me/too/"],
},
},
},
],
};