-
Notifications
You must be signed in to change notification settings - Fork 19
/
next.config.js
52 lines (51 loc) · 1.23 KB
/
next.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
module.exports = {
experimental: {
appDir: true,
},
images: {
domains: [
'i.scdn.co', // spotify
'a.ltrbxd.com', // letterboxd
'steamcdn-a.akamaihd.net', // steam
],
},
headers() {
return [
{
source: '/(.*)',
headers: [
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy
// Opt-out of Google FLoC: https://amifloced.org/
{
key: 'Permissions-Policy',
value:
'camera=(), microphone=(), geolocation=(), interest-cohort=()',
},
{
key: 'Content-Security-Policy',
value: ContentSecurityPolicy.replace(/\n/g, ''),
},
],
},
];
},
redirects() {
return [
{
source: '/gamedev',
destination: 'https://gamedev.jeffjadulco.com',
permanent: false,
},
]
},
}
// https://securityheaders.com
const ContentSecurityPolicy = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline' https://gc.zgo.at http://gc.zgo.at;
style-src 'self' 'unsafe-inline';
img-src * blob: data: https://jeffjadulco.goatcounter.com/count;
media-src 'none';
connect-src *;
font-src 'self';
`