-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
141 lines (137 loc) · 4.54 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
const siteUrl = process.env.URL || `https://sosforcuba.com`
module.exports = {
siteMetadata: {
title:
"S.O.S. Cuba. The people of Cuba needs freedom. No more communism. No more dictatorship. No more abuse of human rights.",
description:
"The people of Cuba has suffered more than 62 years of human rights abuse. Harassment, incarceration, public acts of repudiation, beatings, intimidation, repression, surveillance, and arbitrary detentions are just a few. The list of prohibitions that Cubans have faced is actually much worse. Support our cause making a generous donation today.",
author: "The people of Cuba",
keywords: [
"Cuba",
"S.O.S. Cuba",
"Communism",
"Decreto Ley 35",
"U.S. Embargo",
],
siteUrl: "https://sosforcuba.com",
},
plugins: [
"gatsby-plugin-react-helmet",
"gatsby-plugin-image",
"gatsby-plugin-eslint",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: `${__dirname}/src/images`,
},
},
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
`gatsby-plugin-instagram-embed`,
{
resolve: "gatsby-plugin-robots-txt",
options: {
host: "https://www.sosforcuba.com",
sitemap: "https://www.sosforcuba.com/sitemap/sitemap-index.xml",
policy: [{ userAgent: "*", allow: "/" }],
},
},
{
resolve: "gatsby-plugin-sitemap",
options: {
query: `
{
allSitePage {
nodes {
path
}
}
}
`,
resolveSiteUrl: () => siteUrl,
resolvePages: ({ allSitePage: { nodes: allPages } }) => {
return allPages.map(page => {
return { ...page }
})
},
serialize: ({ path, modifiedGmt }) => {
return {
url: path,
lastmod: modifiedGmt,
}
},
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: "gatsby-starter-default",
short_name: "starter",
start_url: "/",
background_color: "#663399",
theme_color: "#663399",
display: "minimal-ui",
icon: "src/images/sos_for_cuba_logo.jpg", // This path is relative to the root of the site.
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint: process.env.mailchimp,
timeout: 3500,
},
},
{
resolve: `gatsby-source-faunadb`,
options: {
// The secret for the key you're using to connect to your Fauna database.
// You can generate on of these in the "Security" tab of your Fauna Console.
secret: process.env.fauna_api_secret,
// The name of the index you want to query
// You can create an index in the "Indexes" tab of your Fauna Console.
index: `protests`,
// This is the name under which your data will appear in Gatsby GraphQL queries
// The following will create queries called `allBird` and `bird`.
type: "protest",
// If you need to limit the number of documents returned, you can specify a
// maximum number to read.
// size: 100,
},
},
{
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-WRPM1LT7Y4", // Google Analytics / GA
// "AW-CONVERSION_ID", // Google Ads / Adwords / AW
// "DC-FLOODIGHT_ID", // Marketing Platform advertising products (Display & Video 360, Search Ads 360, and Campaign Manager)
],
// 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/**"],
},
},
},
"gatsby-plugin-gatsby-cloud",
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}