-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
51 lines (46 loc) · 1.31 KB
/
Copy pathnext.config.js
File metadata and controls
51 lines (46 loc) · 1.31 KB
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
/** @type {import('next').NextConfig} */
const nextConfig = {
// Turn off React StrictMode for now, as react-aria (used by Plasmic)
// has some troubles with it. See
// https://github.com/adobe/react-spectrum/labels/strict%20mode
reactStrictMode: false,
// Removing x-powered-by-nextjs message for security
poweredByHeader: false,
// bypass bug https://github.com/nextauthjs/next-auth/discussions/9385#discussioncomment-8875108
transpilePackages: ['next-auth'],
async headers() {
return [
{
source: '/:path*', // for all paths
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*'
},
{
key: 'Permissions-Policy',
value: "camera=(), geolocation=(self), microphone=()"
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin'
},
{
//HSTS
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains; preload'
},
{
key: 'X-Content-Type-Options',
value: 'nosniff'
},
{
key: 'X-XSS-Protection',
value: '1; mode=block'
},
],
},
]
},
};
module.exports = nextConfig;