-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
next.config.js
38 lines (38 loc) · 940 Bytes
/
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
/** @type {import('next').NextConfig} */
module.exports = {
poweredByHeader: false,
images: {
deviceSizes: [375, 750, 1125],
imageSizes: [56, 112, 185, 370, 370, 375, 540, 740, 750, 1080],
},
headers() {
return process.env.NODE_ENV === 'production'
? [
{
source: '/(.*)',
headers: [
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'Content-Security-Policy',
value: `default-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self' https://hive.splitbee.io https://vitals.vercel-insights.com; script-src 'self' https://cdn.splitbee.io; font-src 'self'; frame-ancestors 'self'`,
},
],
},
]
: []
},
eslint: {
ignoreDuringBuilds: true,
},
}