-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
39 lines (37 loc) · 1015 Bytes
/
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
const assert = require("assert");
const colors = require("./src/colors.json");
const { CONTENTFUL_ACCESS_TOKEN, CONTENTFUL_SPACE_ID, DETERMINISTIC } = process.env;
assert(CONTENTFUL_ACCESS_TOKEN, "Contentful Access Token not provided");
assert(CONTENTFUL_SPACE_ID, "Contentful Space ID not provided");
module.exports = {
siteMetadata: {
deterministic: Boolean(DETERMINISTIC),
},
plugins: [
"gatsby-plugin-react-helmet",
"gatsby-plugin-typescript",
"gatsby-plugin-styled-components",
"gatsby-transformer-remark",
"gatsby-plugin-image",
{
resolve: "gatsby-plugin-manifest",
options: {
// TODO: Get this from Contentful
name: "Meese Enterprises",
short_name: "Meese",
start_url: "/",
background_color: colors.darkPrimary,
theme_color: colors.primaryAccent,
display: "minimal-ui",
icon: "logo.png",
},
},
{
resolve: "gatsby-source-contentful",
options: {
spaceId: CONTENTFUL_SPACE_ID,
accessToken: CONTENTFUL_ACCESS_TOKEN,
},
},
],
};