-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
47 lines (46 loc) · 916 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
47
/** @type {import('next').NextConfig} */
const nextConfig = {
redirects: () => {
return [
{
source: '/home',
destination: '/',
permanent: true,
},
];
},
images: {
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
port: '3000',
},
],
},
experimental: {
serverComponentsExternalPackages: ['pino', 'pino-pretty', 'payload'],
workerThreads: false,
cpus: 1,
},
webpack: (config) => {
config.resolve.fallback = {
// child_process: false,
// process: false,
// fs: false,
// util: false,
// http: false,
// https: false,
// tls: false,
// net: false,
// crypto: false,
// path: false,
// os: false,
// stream: false,
// zlib: false,
// dns: false,
};
return config;
},
};
export default nextConfig;