-
Notifications
You must be signed in to change notification settings - Fork 15
/
gatsby-config.js
134 lines (134 loc) · 3.11 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
module.exports = {
siteMetadata: {
siteUrl: "https://www.cryptodappy.com",
title: "CryptoDappy Learning Hub",
menuLinks: [
{
name: "What's CryptoDappy?",
link: '/overview'
},
{
name: 'Onboarding',
link: '/missions/mission-0'
},
{
name: 'Mission #1',
link: '/missions/mission-1'
},
{
name: 'Mission #2',
link: '/missions/mission-2'
},
{
name: 'Mission #3',
link: '/missions/mission-3'
},
{
name: 'Mission #4',
link: '/missions/mission-4'
},
{
name: 'Mission #5',
link: '/missions/mission-5'
},
{
name: 'Mission #6',
link: '/missions/mission-6'
},
{
name: 'Resources',
link: '/resources'
},
{
name: 'Community',
link: 'https://forum.onflow.org/c/community-projects/cryptodappy/35'
}
,
{
name: 'Demo App',
link: 'https://demo.cryptodappy.com'
},
]
},
plugins: [
"gatsby-plugin-styled-components",
"gatsby-plugin-image",
"gatsby-plugin-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: `missions`,
path: `${__dirname}/src/missions`,
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `locale`,
path: `${__dirname}/src/config/locales`
}
},
{
resolve: `gatsby-plugin-react-i18next`,
options: {
localeJsonSourceName: `locale`, // name given to `gatsby-source-filesystem` plugin.
languages: [`en`, `ja`, `vn`],
defaultLanguage: `en`,
redirect: false,
// if you are using Helmet, you must include siteUrl, and make sure you add http:https
siteUrl: `https://www.cryptodappy.com`,
// you can pass any i18next options
// pass following options to allow message content as a key
i18nextOptions: {
interpolation: {
escapeValue: false // not needed for react as it escapes by default
},
keySeparator: false,
nsSeparator: false
},
pages: [
{
matchPath: '/:lang(ja|vn)?/:slug+',
getLanguageFromPath: true
}
]
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'CryptoDappy Learning Hub',
short_name: 'CryptoDappy',
start_url: '/',
background_color: '#f7f0eb',
theme_color: '#a2466c',
display: 'standalone',
icon: 'src/images/icon.png',
}
},
{
resolve: `gatsby-plugin-s3`,
options: {
bucketName: "crypto-dappy-learning-hub",
},
},
"gatsby-plugin-mdx",
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
"G-43X0VSTBPJ"
],
},
},
{
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
googleAnalytics: {
trackingId: 'G-43X0VSTBPJ',
},
environments: ['production']
},
},
],
};