-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgatsby-config.js
90 lines (90 loc) · 2.87 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
module.exports = {
siteMetadata: {
siteUrl: 'https://alephium.org',
title: 'Alephium: A new paradigm',
description:
"Alephium is a sharded L1 blockchain scaling and improving on Bitcoin's PoW & UTXO. A highly performant, secure, and energy efficient network for DeFi & dApps.",
social: {
twitter: 'alephium'
}
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Alephium`,
short_name: `Alephium`,
start_url: `/`,
icon: 'src/images/favicon.ico',
icons: []
}
},
'gatsby-plugin-styled-components',
'gatsby-plugin-image',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-transformer-remark',
'gatsby-transformer-yaml',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: './src/images/'
},
__key: 'images'
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: './src/pages/'
},
__key: 'pages'
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: './src/content'
}
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /images\/svgs/
}
}
},
// TODO: Re-enable when CMS is correctly set up
// {
// resolve: 'gatsby-plugin-netlify-cms',
// options: {
// manualInit: true,
// modulePath: './cms/index.ts',
// enableIdentityWidget: false
// }
// },
{
resolve: 'gatsby-plugin-csp',
options: {
mergeScriptHashes: false,
mergeStyleHashes: false,
directives: {
'style-src': "'self' 'unsafe-inline' https://www.gstatic.com",
'script-src':
"'self' 'unsafe-inline' 'unsafe-eval' https://gc.zgo.at https://prod.spline.design https://translate.googleapis.com https://translate.google.com https://translate-pa.googleapis.com",
'default-src': "'none'",
'manifest-src': "'self'",
'connect-src':
"'self' backend.mainnet.alephium.org api.github.com alephium.goatcounter.com https://prod.spline.design https://api.coingecko.com https://alph-richlist.vercel.app https://api.llama.fi https://translate.googleapis.com https://translate-pa.googleapis.com",
'img-src':
"'self' https://prod.spline.design https://pbs.twimg.com/ https://media.licdn.com https://assets.coingecko.com https://fonts.gstatic.com https://www.gstatic.com https://www.google.com https://translate.googleapis.com https://translate.google.com data: https://alephium.goatcounter.com blob: https://www2.alephium.org blob: https://www.alephium.org",
'frame-ancestors': "'none'"
}
}
}
]
}