-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
55 lines (54 loc) · 1.59 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
const colors = require("./src/colors");
module.exports = {
siteMetadata: {
title: "yangtrends",
description: "Follow the latest trends for Andrew Yang's presidency",
author: "Justin Chi",
},
plugins: [
"gatsby-plugin-root-import",
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-source-filesystem",
options: {
name: "polls",
path: `${__dirname}/src/content/polls`,
},
},
"gatsby-transformer-sharp",
"gatsby-transformer-csv",
"gatsby-plugin-sharp",
{
resolve: "gatsby-plugin-manifest",
options: {
name: "yangtrends",
short_name: "yangtrends",
start_url: "/",
background_color: colors.blue,
theme_color: colors.blue,
display: "minimal-ui",
icon: "src/images/yang-icon.png",
},
},
{
resolve: "gatsby-plugin-emotion",
},
{
resolve: "gatsby-plugin-google-analytics",
options: {
trackingId: "UA-94088018-2",
head: false,
},
},
{
resolve: "gatsby-plugin-sentry",
options: {
dsn:
"https://82f99653a0884b37ac0fd60537dd73b9@sentry.io/1227594",
environment: process.env.NODE_ENV,
enabled: (() =>
["production"].includes(process.env.NODE_ENV))(),
},
},
],
};