-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
82 lines (82 loc) · 2.01 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
module.exports = {
siteMetadata: {
title: `Maria Szubski Digital's Gatsby Starter`,
description: ``,
author: `Maria Szubski <[email protected]>`,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sitemap`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
"gatsby-plugin-offline",
`gatsby-plugin-remove-trailing-slashes`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-catch-links`,
{
resolve: "gatsby-transformer-remark",
options: {
commonmark: true,
plugins: [],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `assets`,
path: `${__dirname}/src/assets`,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GOOGLE_ANALYTICS_TRACKING_ID,
head: true,
anonymize: true,
respectDNT: true,
pageTransitionDelay: 0,
defer: true,
},
},
{
resolve: "gatsby-plugin-robots-txt",
options: {
env: {
production: {
policy: [{ userAgent: "*" }],
},
"branch-deploy": {
policy: [{ userAgent: "*", disallow: ["/"] }],
sitemap: null,
host: null,
},
"deploy-preview": {
policy: [{ userAgent: "*", disallow: ["/"] }],
sitemap: null,
host: null,
},
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-mszd`,
short_name: `MSD's Gatsby Starter`,
start_url: `/`,
background_color: `#1D2226`,
theme_color: `#161528`,
display: `minimal-ui`,
icon: `src/assets/favicon.png`,
},
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_DELIVERY_TOKEN,
host: `cdn.contentful.com`,
},
},
],
}