-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
81 lines (77 loc) · 1.96 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
/**
* @type {import('gatsby').GatsbyConfig}
*/
// import language related configuration
const { languages, defaultLanguage } = require('./src/common/Languages')
module.exports = {
siteMetadata: {
title: `Co-Binary`,
description: `Collboration Binary World, my personal digital garden.`,
image: `icon.ico`,
siteUrl: `https://www.co-binary.com`,
},
flags: {
DEV_SSR: true,
},
plugins: [
// css plugin
'gatsby-plugin-postcss',
// multi-language support
{
// define from where to find the multi-language resources
// use name to reference it.
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/locales`,
name: `locale`,
},
},
{
resolve: `gatsby-plugin-react-i18next`,
options: {
localeJsonSourceName: `locale`, // reference the multi-language resources
languages, // all languages that are supported
defaultLanguage, // the default language
siteUrl: `https://www.co-binary.com`,
trailingSlash: 'always',
i18nextOptions: {
fallbackLng: defaultLanguage,
supportedLngs: languages,
defaultNS: 'common',
interpolation: {
escapeValue: false,
},
keySeparator: false,
nsSeparator: false,
},
pages: [],
},
},
// markdown
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content`,
name: `content`,
},
},
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800,
//linkImagesToOriginal: false,
backgroundColor: 'transparent',
},
},
`gatsby-remark-prismjs-copy-button`,
`gatsby-remark-prismjs`,
],
},
},
],
}