This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
65 lines (64 loc) · 1.78 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Fantom Foundation`,
short_name: `Fantom`,
// start_url: `/`,
// background_color: `#f7f0eb`,
// theme_color: `#a2466c`,
// display: `standalone`,
icon: `static/images/favicon-blue.svg`,
},
},
{
resolve: `gatsby-plugin-intl`,
options: {
// language JSON resource path
path: `${__dirname}/src/intl`,
// supported language
languages: [`en`, `ko`, `zh`],
// language file path
defaultLanguage: `en`,
// option to redirect to `/ko` when connecting `/`
redirect: true,
},
},
//`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-sass`,
options: {
cssLoaderOptions: {
camelCase: false,
},
},
},
{
resolve: 'gatsby-plugin-mailchimp',
options: {
endpoint: 'https://foundation.us18.list-manage.com/subscribe/post?u=bb222487a3611557609e8cf8d&id=8e37e03fe6',
},
},
{
resolve: "gatsby-plugin-netlify",
options: {
mergeSecurityHeaders: true,
headers: {
'/*': ['X-Frame-Options: sameorigin'],
"/**/*.html": ["cache-control: public, max-age=300"],
"/static/*": ["cache-control: public, max-age=31536000, immutable"],
"/*.js": ["cache-control: public, max-age=31536000, immutable"],
"/*.css": ["cache-control: public, max-age=31536000, immutable"],
"/sw.js": ["cache-control: public, max-age=0, must-revalidate"],
},
},
},
],
}