-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
94 lines (92 loc) · 2.76 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`
});
const {
GATSBY_SERVER_URL = 'https://eyesbound.com',
GATSBY_SITE_NAME = 'EYESBOUND',
GATSBY_PRISMIC_REPO_NAME = 'eyesbound',
GATSBY_API_KEY,
} = process.env;
module.exports = {
flags: {
FAST_DEV: true,
DEV_SSR: true
},
jsxRuntime: 'automatic',
jsxImportSource: '@emotion/react',
siteMetadata: {
siteUrl: GATSBY_SERVER_URL
},
plugins: [
{
resolve: 'gatsby-plugin-netlify',
options: {
allPageHeaders: [
'Strict-Transport-Security: max-age=31536000; includeSubDomains; preload'
]
}
},
{
resolve: 'gatsby-source-prismic',
options: {
repositoryName: GATSBY_PRISMIC_REPO_NAME,
accessToken: GATSBY_API_KEY,
linkResolver: doc => `/${doc.id}`,
schemas: {
category: require('./src/schemas/category.json'),
picture: require('./src/schemas/picture.json'),
series: require('./src/schemas/series.json'),
tags: require('./src/schemas/tags.json')
}
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: GATSBY_SITE_NAME,
short_name: GATSBY_SITE_NAME,
description: `Portfolio Website for Eyesbound Photography – Berlin based photographer Jannis Hell. The focus lies on fine art photography with architecture and environmental images. Founded in 2005, Eyesbound switched from analogue to digital photography, using hdr and infrared techniques as well as extreme bulb exposure.`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#000`,
display: `standalone`,
icon: `static/logo.png`,
icon_options: {purpose: `any maskable`},
cache_busting_mode: 'none',
theme_color_in_head: false
}
},
{
resolve: 'gatsby-plugin-offline',
options: {
workboxConfig: {
globPatterns: ['**/static*']
}
}
},
{
resolve: `gatsby-plugin-csp`,
options: {
disableOnDev: false,
mergeScriptHashes: false,
mergeStyleHashes: false,
mergeDefaultDirectives: true,
directives: {
'connect-src': `'self' ws: data: localhost:* eyesbound.com:* *.gtsb.io:* *.gatsbyjs.com:* www.gstatic.com *.googleapis.com`,
'font-src': `'self' fonts.gstatic.com`,
'frame-src': `'self' ${GATSBY_PRISMIC_REPO_NAME}.prismic.io app.netlify.com`,
'img-src': `'self' data: maps.gstatic.com *.googleapis.com *.ggpht images.prismic.io`,
'script-src': `'self' 'unsafe-inline' 'unsafe-eval' *.googleapis.com static.cdn.prismic.io`,
'style-src': `'self' 'unsafe-inline' fonts.googleapis.com`,
'worker-src': `'self' blob:`
}
}
},
{resolve: 'gatsby-plugin-robots-txt'},
{resolve: 'gatsby-plugin-sitemap'},
{resolve: 'gatsby-plugin-react-helmet'},
{resolve: 'gatsby-plugin-web-font-loader'},
{resolve: 'gatsby-plugin-emotion'},
{resolve: 'gatsby-plugin-image'},
]
};