-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
128 lines (127 loc) · 2.97 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
if (process.env.NODE_ENV != 'production')
require("dotenv").config({path: `.env.${process.env.NODE_ENV}`})
module.exports = {
siteMetadata: {
title: 'Amp by Intentful Motion',
author: 'Intentful Motion, Inc.',
description: 'Motion and gesture reactive brake, turn and running lights for your bicycle, scooter, or e-skate',
keywords: `Amp, smart lights, bicycle lights, longboard lights, Boosted Board lights, OneWheel lights, scooter lights, brake lights, indicators`,
slogan: "Light up your ride",
siteUrl: `https://ridewithamp.com`,
menuLinks: [
{
name: `What Is It`,
link: `/#what`
},
{
name: `Specs`,
link: `/#specs`
},
{
name: `Mix It Up`,
link: `/#mixer`
},
{
name: `Shop Now`,
link: `/store`
}
],
footer: [
{
section: `Info`,
link: '/',
links: [
{
name: `Contact`,
link: ``
},
{
name: `Terms`,
link: `/terms`
},
{
name: `Privacy`,
link: `/privacy`
}
]
}
]
},
plugins: [
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`
}
},
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'Amplify Your Ride',
short_name: 'Amp',
start_url: '/',
background_color: '#2980b9',
theme_color: '#2980b9',
display: 'standalone',
icon: 'src/images/amp-icon.svg',
orientation: 'portrait'
}
},
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-139611338-1',
// Setting this parameter is optional (required for some countries such as Germany)
anonymize: true
}
},
`gatsby-plugin-sitemap`,
'gatsby-transformer-remark',
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: `smrlz4o6hk32`,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
downloadLocal: true
}
},
{
resolve: `gatsby-plugin-drip`,
options: {
accountId: '6140706'
}
},
{
resolve: `gatsby-plugin-stripe`,
options: {
async: true,
},
},
{
resolve: `gatsby-plugin-netlify`,
options: {
allPageHeaders: [
// 'X-Frame-Options: SAMEORIGIN',
'X-Content-Type-Options: nosniff',
// "Content-Security-Policy: default-src 'self' *.intentfulmotion.com; script-src 'self' js.stripe.com d33wubrfki0l68.cloudfront.net",
'Referrer-Policy: strict-origin-when-cross-origin',
'Feature-Policy: none'
]
}
},
{
resolve: `gatsby-plugin-robots-txt`,
options: {
policy: [{ userAgent: '*', disallow: ['/checkout', '/404', '/subscribe-success'] }],
}
}
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
// 'gatsby-plugin-offline',
]
};