-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
40 lines (39 loc) · 1.07 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
require('dotenv-safe').config();
module.exports = {
siteMetadata: {
title: 'BILDQUADRAT',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
'gatsby-plugin-typescript',
{
resolve: 'gatsby-plugin-netlify',
options: {
headers: {
'/*': [
"Content-Security-Policy: frame-ancestors 'self' https://*.storyblok.com/",
"X-Frame-Options: ALLOW-FROM https://app.storyblok.com/",
]
},
mergeSecurityHeaders: true,
transformHeaders: (headers, path) => {
// Strip out predefined X-Frame-Options: DENY-header
return (path === '/*')
? headers.filter(h => h.split(': ')[1].indexOf('DENY') === -1)
: headers;
}
}
},
'gatsby-plugin-netlify-cache',
{
resolve: '@neolegends/gatsby-source-storyblok',
options: {
accessToken: process.env.GATSBY_STORYBLOK_ACCESS_TOKEN,
dataSources: ['social-links', 'main-menu'],
homeSlug: 'home',
version: 'draft'
}
},
],
}