-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
85 lines (83 loc) · 2.08 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
const adapter = require('gatsby-adapter-netlify')
/**
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`
})
module.exports = {
/* Your site config here */
siteMetadata: {
author: 'Scott Milliorn',
creationDate: new Date(2021, 10, 16),
description: `Blazing fast modern recipe site in GatsbyJS`,
github: 'https://github.com/milliorn/recipe-page',
siteUrl: `https://milliorn-recipes.netlify.app/`,
title: 'Simply Recipes'
},
plugins: [
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-plugin-styled-components`,
`gatsby-transformer-sharp`,
{
// https://www.gatsbyjs.com/plugins/gatsby-adapter-netlify/
resolve: 'gatsby-adapter-netlify',
options: {
excludeDatastoreFromEngineFunction: true,
imageCDN: true
}
},
{
// https://www.gatsbyjs.com/plugins/gatsby-plugin-html-attributes/
resolve: 'gatsby-plugin-html-attributes',
options: {
lang: 'en'
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images`
}
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: `6p9utpb04y6n`,
// Learn about environment variables: https://gatsby.dev/env-vars
accessToken: process.env.CONTENTFUL_API_KEY
}
},
{
resolve: `gatsby-plugin-webfonts`,
options: {
fonts: {
google: [
{
family: 'Montserrat',
variants: ['400']
},
{
family: 'Inconsolata',
variants: ['400', '500', '600', '700']
}
]
}
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Simply Recipes`,
short_name: `Simply Recipes`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#4338ca`,
display: `standalone`,
icon: `src/assets/images/logo.svg`
}
}
]
}