-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
39 lines (37 loc) · 926 Bytes
/
gatsby-config.js
File metadata and controls
39 lines (37 loc) · 926 Bytes
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
require("dotenv").config({
path: `.env`
});
const contentfulConfigOptions = {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
host: process.env.CONTENTFUL_HOST
};
module.exports = {
plugins: [
"gatsby-plugin-react-helmet",
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "Diff Ltd",
short_name: "Diff",
start_url: "/",
background_color: "#E6E6FA",
theme_color: "#E6E6FA",
display: "minimal-ui",
icon: "src/images/diff-compact-transp.png" // This path is relative to the root of the site.
}
},
`gatsby-plugin-styled-components`,
{
resolve: "gatsby-source-contentful",
options: contentfulConfigOptions
}
]
};