-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
executable file
·52 lines (50 loc) · 1.16 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
const dotenv = require("dotenv");
//if(process.env.NODE_ENV !== 'production'){
dotenv.config();
//}
module.exports = {
pathPrefix: "/gatsby-material-ui-business-starter",
siteMetadata: {
title: "Gatsby Material UI Contentful Business Starter",
contact: {
phone: "503-555-1111",
email: "[email protected]",
},
menuLinks: [
{
name: "Programs",
link: "/programs",
},
{
name: "Team",
link: "/team",
},
],
},
plugins: [
"gatsby-transformer-remark",
"gatsby-plugin-react-helmet",
"gatsby-plugin-stylus",
"gatsby-plugin-remove-serviceworker",
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/src/pages`,
name: "pages",
},
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: `6y7x6a0he6ux`,
// Learn about environment variables: https://gatsby.dev/env-vars
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
},
},
{
resolve: `gatsby-plugin-create-client-paths`,
options: { prefixes: [`/details/*`] },
},
`gatsby-plugin-netlify`,
],
};