-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
173 lines (171 loc) · 5.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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
module.exports = {
siteMetadata: {
title: `We Build React Web Apps. Because we love to.`,
siteUrl: `https://tech47.in`,
description: `You need an agency which understands your business and works as your partner?
We are a group of developers who have built great products which scale.
Our teams come with a mix of experience to give the perfect balance.`,
instagram: '/social-media/instagram'
},
mapping: {
'MarkdownRemark.frontmatter.author': 'AuthorsYaml'
},
plugins: [
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/Layout`)
}
},
{
resolve: 'gatsby-plugin-eslint',
options: {
test: /\.js$|\.jsx$/,
exclude: /(node_modules|.cache|public)/,
stages: ['develop'],
options: {
emitWarning: true,
failOnError: false
}
}
},
'gatsby-plugin-emotion',
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages/`
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Tech47`,
short_name: `Tech47`,
start_url: `/`,
background_color: `#000`,
theme_color: `#fff`,
icon: 'src/assets/images/logo-small.png'
}
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography.js`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `${__dirname}/src/data/`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images/`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `meetupImages`,
path: `${__dirname}/src/assets/meetupImages/`
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: ``
}
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACEID,
accessToken: process.env.CONTENTFUL_ACCESSTOKEN
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
'gatsby-remark-autolink-headers',
'gatsby-remark-smartypants',
{
resolve: 'gatsby-remark-embed-video',
options: {
// width: '100%',
// ratio: 1.77, // Optional: Defaults to 16/9 = 1.77
related: false, //Optional: Will remove related videos from the end of an embedded YouTube video.
noIframeBorder: true, //Optional: Disable insertion of <style> border: 0
containerClass: 'embedVideo-container' //Optional: Custom CSS class for iframe container, for multiple classes separate them by space
}
},
'gatsby-remark-prismjs',
{
resolve: `gatsby-remark-images`,
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 800
}
}
]
}
},
{
resolve: 'gatsby-plugin-nprogress',
options: {
// Setting a color is optional.
color: '#02a9f7',
// Disable the loading spinner.
showSpinner: false
}
},
{
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: `21sIEXblScfoA40J7FfmRSOwioHD3Eir`,
// 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: `21sIEXblScfoA40J7FfmRSOwioHD3Eir`,
// boolean (defaults to false) on whether you want
// to include analytics.page() automatically
// if false, see below on how to track pageviews manually
trackPage: false,
// 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
}
},
'gatsby-transformer-json',
'gatsby-transformer-yaml',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-next-seo',
'gatsby-plugin-sitemap'
]
};