This repository was archived by the owner on Sep 20, 2023. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathgatsby-config.js
More file actions
executable file
·115 lines (112 loc) · 2.52 KB
/
Copy pathgatsby-config.js
File metadata and controls
executable file
·115 lines (112 loc) · 2.52 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
require("dotenv").config();
const gatsbyConfig = {
siteMetadata: {
siteUrl: `https://wordsby-starter.netlify.com`
},
plugins: [
`gatsby-plugin-styled-components`,
{
resolve: "gatsby-plugin-google-fonts",
options: {
fonts: ["poppins:100,300,400,500"]
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "wordsby-uploads",
path: `${__dirname}/wordsby/uploads/`
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "wordsby-data",
path: `${__dirname}/wordsby/data/`
}
},
{
resolve: "gatsby-plugin-wordsby",
options: {
inlineImages: {
recursive: true,
maxWidth: 500
},
instantPublish: false
}
},
{
resolve: "gatsby-plugin-transition-link",
options: {
layout: require.resolve(`./src/components/layouts/index.js`)
}
},
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-source-filesystem",
options: {
name: "assets",
path: `${__dirname}/static/`
}
},
{
resolve: "gatsby-plugin-nprogress",
options: {
color: "rebeccapurple"
}
},
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-catch-links",
{
resolve: "gatsby-plugin-sitemap",
options: {
query: `{
site {
siteMetadata {
siteUrl
}
}
allSitePage(filter: {context: {id: {ne: null}}}) {
edges {
node {
path
context {
id
}
}
}
}
}`
}
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /svg/
}
}
},
{
resolve: "gatsby-plugin-netlify",
options: {
headers: {
"/*": [
// these headers are default except x-frame-options is omitted to allow previewing the site via iframe
`X-XSS-Protection: 1; mode=block`,
`X-Content-Type-Options: nosniff`
]
},
mergeSecurityHeaders: false
}
},
"gatsby-plugin-netlify-cache"
]
};
if (process.env.NODE_ENV === "production") {
// gatsbyConfig.plugins.push("gatsby-plugin-offline");
gatsbyConfig.plugins.push("gatsby-plugin-remove-serviceworker");
gatsbyConfig.plugins.push("gatsby-plugin-favicon");
}
module.exports = gatsbyConfig;