-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgatsby-config.js
86 lines (82 loc) · 1.87 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
const siteUrl = 'https://tmplgitp.gatsbyjs.io';
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
siteUrl,
title: 'TMPL',
description: `EMS-тренування в Києві`,
author: `GoWeb`,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/locales`,
name: `locale`,
},
},
{
resolve: `gatsby-plugin-react-i18next`,
options: {
localeJsonSourceName: `locale`, // name given to
languages: [`uk`, `ru`],
defaultLanguage: `uk`,
generateDefaultLanguagePage: '/uk',
redirect: false,
siteUrl,
i18nextOptions: {
lng: 'uk',
load: 'currentOnly',
interpolation: {
escapeValue: false,
},
nsSeparator: false,
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `TMPL app`,
short_name: `TMPL`,
description: `EMS-тренування в Києві`,
lang: `uk`,
display: `standalone`,
icon: `src/images/icon/icon.png`,
start_url: `/`,
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-anchor-links`,
`gatsby-plugin-sass`,
`gatsby-plugin-image`,
`gatsby-plugin-netlify`,
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /\.inline\.svg$/,
},
// rule: {
// include: /svg/,
// },
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
],
};