This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
77 lines (73 loc) · 2.69 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
const dotenv = require('dotenv');
if (process.env.ENVIRONMENT !== 'production') {
dotenv.config();
}
const { SPACE_ID, ACCESS_TOKEN } = process.env;
module.exports = {
siteMetadata: {
siteUrl: `https://mharmony.io`,
title: `mharmony.io`,
description: `Personal website for MHarmony`,
author: `MHarmony`
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`
}
},
{
resolve: 'gatsby-source-contentful',
options: {
spaceId: SPACE_ID,
accessToken: ACCESS_TOKEN
}
},
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `mharmony.io`,
short_name: `mharmony.io`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/logo.png`,
icon_options: {
purpose: `any maskable`
}
}
},
`gatsby-transformer-remark`,
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: `tomato`,
showSpinner: false
}
},
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-netlify`,
options: {
allPageHeaders: [
'Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()',
"Content-Security-Policy: default-src 'self'; font-src 'self' data: https://fonts.gstatic.com; img-src 'self' data: https://images.ctfassets.net; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; script-src 'self' 'unsafe-inline'; report-uri https://mharmony.report-uri.com/r/d/csp/enforce",
'Expect-CT: enforce, max-age=43200, report-uri="https://mharmony.report-uri.com/r/d/ct/enforce"',
'Report-To: {"group":"default","max_age":31536000,"endpoints":[{"url":"https://mharmony.report-uri.com/a/d/g"}],"include_subdomains":true}',
'NEL: {"report_to":"default","max_age":31536000,"include_subdomains":true}'
]
}
},
`gatsby-plugin-catch-links`,
`gatsby-plugin-robots-txt`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-offline`
]
};