forked from discretize/discretize-gear-optimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
67 lines (67 loc) · 1.84 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
module.exports = {
pathPrefix: '/discretize-gear-optimizer',
siteMetadata: {
language: 'en',
siteUrl: 'https://discretize.github.io/discretize-gear-optimizer/',
title: 'GW2 | Discretize [dT] - Discretize Gear Optimizer',
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: 'images',
path: `./src/assets/images`,
},
},
'gatsby-plugin-material-ui',
'gatsby-plugin-theme-ui',
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-transformer-yaml`,
options: {
// eslint-disable-next-line no-unused-vars
typeName: ({ node, object, isArray }) => object['GraphQL ID'],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/assets/presetdata`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/locales`,
name: `locale`,
},
},
{
resolve: `gatsby-plugin-react-i18next`,
options: {
localeJsonSourceName: `locale`, // name given to `gatsby-source-filesystem` plugin.
languages: [`en`, `zh`],
defaultLanguage: `en`,
// if you are using Helmet, you must include siteUrl, and make sure you add http:https
siteUrl: `https://discretize.github.io/discretize-gear-optimizer/`,
// 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: '/',
languages: ['en', 'zh'],
},
],
},
},
],
};