forked from wkocjan/gatsby-contentful-portfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
68 lines (65 loc) · 1.67 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
66
67
68
require("dotenv").config()
const { CONTENTFUL_SPACE_ID, CONTENTFUL_ACCESS_TOKEN } = process.env
if (!CONTENTFUL_SPACE_ID || !CONTENTFUL_ACCESS_TOKEN) {
throw new Error(
"Contentful spaceId and the access token need to be provided."
)
}
module.exports = {
siteMetadata: {
menu: [
{ name: "Home", to: "/" },
{ name: "About", to: "/about" },
],
links: {
facebook: "https://www.facebook.com",
instagram: "https://www.instagram.com/davidgituen/",
pinterest: "https://pinterest.com/",
twitter: "https://twitter.com/",
},
locale: "en",
title: `David Gituen Marcus`,
description: `Interior Achitecture portfolio of David Gituen Marcus`,
author: `@mario-subo`,
},
plugins: [
`gatsby-plugin-postcss`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-transition-link`,
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: CONTENTFUL_SPACE_ID,
accessToken: CONTENTFUL_ACCESS_TOKEN,
downloadLocal: true,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint: process.env.MAILCHIMP_ENDPOINT,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `David Gituen Marcus`,
short_name: `davidgituenmarcus`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#3182ce`,
display: `minimal-ui`,
icon: `src/images/icon.png`,
},
},
],
}