-
Notifications
You must be signed in to change notification settings - Fork 145
/
Copy pathgatsby-config.js
80 lines (77 loc) · 1.93 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
module.exports = {
proxy: {
prefix: "/data",
url: "https://elect.thematter.co",
},
plugins: [
{
resolve: "gatsby-plugin-emotion",
},
{
resolve: "gatsby-plugin-react-helmet",
},
{
resolve: "gatsby-plugin-web-font-loader",
options: {
google: {
families: [
"Libre Baskerville:400,400i,700",
"Noto Sans:400,700",
"Bai Jamjuree:400,600",
],
},
},
},
{
resolve: "gatsby-plugin-layout",
options: {
component: require.resolve(`./src/components/PageLayout`),
},
},
// @todo #1 Add Analytics, e.g. Google Analytics.
// Check out Gatsby docs for how to add analytics
// - Main Guide: https://www.gatsbyjs.org/docs/adding-analytics/
// - Google Analytics: https://www.gatsbyjs.org/docs/adding-analytics/#using-gatsby-plugin-google-analytics
// - Google Tag Manager: https://www.gatsbyjs.org/packages/gatsby-plugin-google-tagmanager/
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-43653558-20",
},
},
// facebook - pixel
{
resolve: `gatsby-plugin-facebook-pixel`,
options: {
pixelId: "403066120477972",
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "ELECT LIVE",
short_name: "ELECT LIVE",
start_url: "/",
background_color: "#000",
theme_color: "#000",
display: "standalone",
icon: "src/styles/images/site-logo.png",
},
},
{
resolve: "gatsby-plugin-htaccess",
options: {
custom: `
<IfModule mod_headers.c>
<FilesMatch "\\.info\\.json$">
Header set Cache-Control "public, max-age=30, stale-while-revalidate=30, stale-if-error=300, must-revalidate"
</FilesMatch>
</IfModule>
`,
},
},
{
resolve: "gatsby-plugin-netlify",
},
],
}