-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
65 lines (65 loc) 路 1.91 KB
/
Copy pathgatsby-config.js
File metadata and controls
65 lines (65 loc) 路 1.91 KB
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
module.exports = {
siteMetadata: {
title: `Borrelli's Bakery Website`,
description: `Borrelli's bakery in Providence Rhode island has been making baked goods since 1948`,
author: `Lit on fire design`,
},
plugins: [
{
resolve: 'gatsby-source-prismic',
options: {
repositoryName: 'borrellis-bakery',
accessToken: process.env.PRISMIC_TOKEN,
linkResolver: ({ node, key, value }) => doc => {
// Homepage route fallback
return '/';
},
schemas: {
aboutUs: require('./prismic/schemas/aboutUs.json'),
biscuits: require('./prismic/schemas/biscuits.json'),
breads: require('./prismic/schemas/breads.json'),
cakes: require('./prismic/schemas/cakes.json'),
pastries: require('./prismic/schemas/pastries.json'),
pies: require('./prismic/schemas/pies.json'),
pizza: require('./prismic/schemas/pizza.json'),
seasonal: require('./prismic/schemas/seasonal.json'),
specialty: require('./prismic/schemas/specialty.json'),
},
lang: '*',
shouldDownloadImage: ({ node, key, value }) => {
return true;
},
},
},
`gatsby-plugin-layout`,
{
resolve: `gatsby-plugin-styled-components`,
options: {
// Use this during production to shorten class names in styled-components
// Find a way to trigger this automatically
// displayName: false
},
},
`gatsby-plugin-react-helmet-async`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#000`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
],
}