-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
138 lines (133 loc) · 4.57 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
module.exports = {
siteMetadata: {
title: `StudyDeFi`,
founders: [
{
name: `Adrian Li`,
association: "Truffle",
},
{
name: `Kendrick Tan`,
association: "Omisego",
},
],
description: `Created by Ethereum industry professionals to help bring DeFi to the masses.`,
siteUrl: `https://studydefi.com/`,
social: {
twitter: `studydefi`,
},
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/blog`,
name: `blog`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/assets`,
name: `assets`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
`gatsby-remark-external-links`,
],
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-feed`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `StudyDeFi Blog`,
short_name: `StudyDeFi`,
start_url: `/`,
background_color: `#1c232a`,
theme_color: `#fe921f`,
display: `minimal-ui`,
icon: `static/android-chrome-192x192.png`,
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-segment-js`,
options: {
// your segment write key for your production environment
// when process.env.NODE_ENV === 'production'
// required; non-empty string
prodKey: process.env.SEGMENT_API_KEY,
// if you have a development env for your segment account, paste that key here
// when process.env.NODE_ENV === 'development'
// optional; non-empty string
devKey: process.env.SEGMENT_API_KEY,
// boolean (defaults to false) on whether you want
// to include analytics.page() automatically
// if false, see below on how to track pageviews manually
trackPage: true,
// If you need to proxy events through a custom endpoint,
// add a `host` property (defaults to https://cdn.segment.io)
// Segment docs:
// - https://segment.com/docs/guides/sources/custom-domains
// - https://segment.com/docs/sources/website/analytics.js/#proxy
host: `https://override-segment-endpoint`,
// boolean (defaults to false); whether to delay load Segment
// ADVANCED FEATURE: only use if you leverage client-side routing (ie, Gatsby <Link>)
// This feature will force Segment to load _after_ either a page routing change
// or user scroll, whichever comes first. This delay time is controlled by
// `delayLoadTime` setting. This feature is used to help improve your website's
// TTI (for SEO, UX, etc). See links below for more info.
// NOTE: But if you are using server-side routing and enable this feature,
// Segment will never load (because although client-side routing does not do
// a full page refresh, server-side routing does, thereby preventing Segment
// from ever loading).
// See here for more context:
// GIF: https://github.com/benjaminhoffman/gatsby-plugin-segment-js/pull/19#issuecomment-559569483
// TTI: https://github.com/GoogleChrome/lighthouse/blob/master/docs/scoring.md#performance
// Problem/solution: https://marketingexamples.com/seo/performance
delayLoad: false,
// number (default to 1000); time to wait after scroll or route change
// To be used when `delayLoad` is set to `true`
delayLoadTime: 1000,
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint:
"https://studydefi.us19.list-manage.com/subscribe/post?u=cda36633fa310b8474871e5ac&id=3e93676690",
},
},
`gatsby-plugin-dark-mode`,
],
}