-
Notifications
You must be signed in to change notification settings - Fork 8
/
gatsby-config.js
177 lines (172 loc) · 6.13 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
174
175
176
177
// eslint-disable-next-line import/no-extraneous-dependencies
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
pathPrefix: '',
siteMetadata: {
title: 'Flotiq',
description: 'Effortless headless CMS',
siteUrl: 'https://blog.flotiq.com', // full path to blog - no ending slash
apiKey: process.env.SCOPED_FLOTIQ_API_KEY,
pathPrefix: '',
},
plugins: [
'gatsby-plugin-sass',
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: process.env.GTM_ID,
// Include GTM in development.
// Defaults to false meaning GTM will only be loaded in production.
includeInDevelopment: false,
// datalayer to be set before GTM is loaded
// should be an object or a function that is executed in the browser
// Defaults to null
defaultDataLayer: { platform: "gatsby" },
// Name of the event that is triggered
// on every Gatsby route change.
// Defaults to gatsby-route-change
routeChangeEventName: "gatsby-route-change",
enableWebVitalsTracking: true,
},
},
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-source-flotiq',
options: {
authToken: process.env.FLOTIQ_API_KEY,
timeout: 30000,
downloadMediaFile: true,
forceReload: false,
includeTypes: [
'_media',
'_tag',
'flotiq_main_settings',
'static_pages',
'flotiq_blog_author',
'flotiq_blog_post',
'flotiq_blog_tag',
'features',
],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'placeholder',
path: `${__dirname}/gatsby-config.js`,
},
},
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://blog.flotiq.com',
sitemap: 'https://blog.flotiq.com/sitemap.xml',
policy: [{ userAgent: '*', allow: '/' }],
},
},
{
resolve: 'gatsby-plugin-hotjar',
options: {
includeInDevelopment: false, // optional parameter to include script in development
id: 2524177,
sv: 6,
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: 'src/assets/favicons/favicon-32x32.png',
theme_color: '#ffffff',
icons: [
{
src: 'src/assets/favicons/favicon-92x92.png',
sizes: '92x92',
type: 'image/png',
},
{
src: 'src/assets/favicons/favicon-32x32.png',
sizes: '32x32',
type: 'image/png',
},
{
src: 'src/assets/favicons/android-icon-36x36.png',
sizes: '36x36',
type: 'image/png',
},
{
src: 'src/assets/favicons/android-icon-48x48.png',
sizes: '48x48',
type: 'image/png',
},
{
src: 'src/assets/favicons/apple-icon-57x57.png',
sizes: '57x57',
type: 'image/png',
},
{
src: 'src/assets/favicons/apple-icon-60x60.png',
sizes: '60x60',
type: 'image/png',
},
{
src: 'src/assets/favicons/android-icon-72x72.png',
sizes: '72x72',
type: 'image/png',
},
{
src: 'src/assets/favicons/apple-icon-76x76.png',
sizes: '76x76',
type: 'image/png',
},
{
src: 'src/assets/favicons/android-icon-96x96.png',
sizes: '96x96',
type: 'image/png',
},
{
src: 'src/assets/favicons/apple-icon-114x114.png',
sizes: '114x114',
type: 'image/png',
},
{
src: 'src/assets/favicons/apple-icon-120x120.png',
sizes: '120x120',
type: 'image/png',
},
{
src: 'src/assets/favicons/android-icon-144x144.png',
sizes: '144x144',
type: 'image/png',
},
{
src: 'src/assets/favicons/apple-icon-152x152.png',
sizes: '152x152',
type: 'image/png',
},
{
src: 'src/assets/favicons/apple-icon-180x180.png',
sizes: '180x180',
type: 'image/png',
},
{
src: 'src/assets/favicons/android-icon-192x192.png',
sizes: '192x192',
type: 'image/png',
},
],
},
},
{
resolve: 'gatsby-plugin-disqus',
options: {
shortname: 'flotiq',
},
},
],
};