forked from Hacker0x01/docs.hackerone.com
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.js
81 lines (81 loc) · 2.09 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
module.exports = {
siteMetadata: {
title: 'HackerOne Platform Documentation',
siteUrl: 'https://docs.hackerone.com',
description: 'Get instant answers to the most common questions and learn how to use HackerOne.',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-sitemap',
'gatsby-plugin-layout',
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/docs/`,
name: "docs",
},
},
{
resolve: 'gatsby-plugin-sri',
options: {
hash: 'sha384'
},
},
{
resolve: `gatsby-plugin-csp`,
options: {
disableOnDev: true,
mergeScriptHashes: false,
mergeStyleHashes: false,
mergeDefaultDirectives: true,
directives: {
"script-src": "'self' 'unsafe-eval' 'unsafe-inline' www.google-analytics.com cdn.jsdelivr.net *.algolia.net *.algolianet.com",
"style-src": "'self' 'unsafe-inline' cdn.jsdelivr.net",
"connect-src": "'self' www.google-analytics.com fbhzv4f2nk7b.statuspage.io *.algolia.net *.algolianet.com",
"frame-src": "www.youtube-nocookie.com"
}
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-49905813-10",
head: false,
anonymize: true,
respectDNT: true,
forceSSL: true,
transport: "beacon",
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-autolink-headers',
options: {
offsetY: 68,
},
},
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 500
},
},
],
},
},
{
resolve: 'gatsby-plugin-algolia-docsearch',
options: {
apiKey: "acfb7def12803db2cd4ac0539b2b571a",
indexName: "hackerone",
inputSelector: "#algolia-doc-search",
},
},
],
};