forked from WindAid-Institution/WindAid-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
101 lines (98 loc) · 2.66 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
const path = require("path");
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
title: "Windaid Institute | Education, Empowerment, Electricity",
siteUrl: "https://windaid.org",
author: "Rishi Khan",
},
plugins: [
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-plugin-react-helmet-canonical-urls",
options: {
siteUrl: "https://windaid.org",
},
},
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-recaptcha",
options: {
async: true,
defer: true,
args: "?onload=onloadCallback&render=explicit",
},
},
{
resolve: "gatsby-plugin-google-fonts",
options: {
fonts: ["Open Sans:300,400,500,600,700,800,900"],
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /(navbar|Statistics)/,
},
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: path.join(__dirname, "src/images"),
},
},
{
resolve: "gatsby-plugin-root-import",
options: {
src: path.join(__dirname, "src"),
pages: path.join(__dirname, "src/pages"),
components: path.join(__dirname, "src/components"),
shared: path.join(__dirname, "src/shared"),
hooks: path.join(__dirname, "src/hooks"),
queries: path.join(__dirname, "src/hooks/queries"),
images: path.join(__dirname, "src/images"),
styles: path.join(__dirname, "src/styles"),
},
},
{
resolve: "gatsby-source-contentful",
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
},
},
{
resolve: "gatsby-plugin-google-gtag",
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
process.env.GTAG_MEASUREMENT_ID, // Google Analytics / GA
],
},
},
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "GTM-WKHSS7R",
// Include GTM in development.
//
// Defaults to false meaning GTM will only be loaded in production.
includeInDevelopment: false,
// datalayer to be set before GTM is loaded
// should be an object or a function that is executed in the browser
//
// Defaults to null
defaultDataLayer: { platform: "gatsby" },
enableWebVitalsTracking: true,
},
},
],
};