-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
80 lines (80 loc) · 2.27 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
module.exports = {
siteMetadata: {
title: `Nicolas Castejon`,
description: `Nicolas Castejon personal website`,
author: `Nicolas Castejon`,
},
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"UA-59687093-3", // Google Analytics / GA
],
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
display: `minimal-ui`,
icon: `src/images/goat-icon.png`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-offline`,
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /images/,
},
},
},
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/layout/layout.js`),
},
},
{
resolve: `gatsby-plugin-intl`,
options: {
// language JSON resource path
path: `${__dirname}/locales`,
// supported language
languages: [`fr`, `en`],
// language file path
defaultLanguage: `fr`,
// option to redirect to `/ko` when connecting `/`
redirect: true,
// option for use / as defaultLangauge root path. if your defaultLanguage is `ko`, when `redirectDefaultLanguageToRoot` is true, then it will not generate `/ko/xxx` pages, instead of `/xxx`
redirectDefaultLanguageToRoot: false,
// paths that you don't want to genereate locale pages, example: ["/dashboard/","/test/**"], string format is from micromatch https://github.com/micromatch/micromatch
ignoredPaths: [],
},
},
{
resolve: "gatsby-plugin-web-font-loader",
options: {
google: {
families: ["Recursive"],
},
},
},
],
}