-
Notifications
You must be signed in to change notification settings - Fork 79
/
gatsby-config.js
67 lines (66 loc) · 1.52 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
// We register the TypeScript evaluator in gatsby-config so we don't need to do
// it in any other .js file. It automatically reads TypeScript config from
// tsconfig.json.
require("ts-node").register();
module.exports = {
siteMetadata: {
siteUrl: "https://defund12.org",
},
plugins: [
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-transformer-yaml",
options: {
typeName: ({node, object, isArray}) => {
if (node.base === "_config.yml") {
return "siteConfig";
} else {
return "Yaml";
}
},
},
},
"gatsby-transformer-remark",
"gatsby-plugin-sass",
{
resolve: "gatsby-plugin-google-analytics",
options: {
trackingId: "UA-165430856-2",
head: false,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "src",
path: `${__dirname}/src`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "emails",
path: `${__dirname}/_emails/`,
ignore: ["README.md"],
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "letters",
path: `${__dirname}/_letters/`,
ignore: ["README.md"],
},
},
{
resolve: "gatsby-source-filesystem",
options: {
typeName: "config",
name: "config",
path: `${__dirname}/_config.yml`,
},
},
"gatsby-plugin-sitemap",
"gatsby-plugin-client-side-redirect",
],
};