-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
46 lines (45 loc) · 985 Bytes
/
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
poweredByHeader: false,
// Correct server configuration format
experimental: {
serverMinification: false
},
output: 'standalone',
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
net: false,
tls: false,
};
}
return config;
},
env: {
AUTH0_BASE_URL: process.env.AUTH0_BASE_URL,
AUTH0_ISSUER_BASE_URL: process.env.AUTH0_ISSUER_BASE_URL,
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
},
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*'
}
]
}
];
},
// Force server to listen on all interfaces
serverOptions: {
host: '0.0.0.0',
port: 3000,
allowRetry: true,
}
};
export default nextConfig;