-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
56 lines (53 loc) · 1.48 KB
/
next.config.mjs
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
import million from 'million/compiler'
/** @type {import('next').NextConfig} */
const nextConfig = {
swcMinify: true,
compiler: {
// see https://styled-components.com/docs/tooling#babel-plugin for more info on the options.
styledComponents: true,
},
poweredByHeader: false,
experimental: {
// appDir: false,
},
headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Referrer-Policy',
value: 'origin-when-cross-origin',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
{
key: 'x-powered-by',
value: 'IIS 6.0',
},
{
key: 'X-Who-I-Am',
value: 'Wall builder!',
},
],
},
]
},
output: 'standalone',
}
const millionConfig = {
auto: {
rsc: true,
},
}
export default million.next(nextConfig, millionConfig)