-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
50 lines (46 loc) · 1.01 KB
/
next.config.js
File metadata and controls
50 lines (46 loc) · 1.01 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
/** @type {import('next').NextConfig} */
/*{ //proxy any requests on http://localhost:3000/api/* to http://localhost:5000/api/*
source: '/api/:slug*',
destination: 'http://localhost:5000/api/:slug*'
}*/
const nextConfig = {
reactStrictMode: true,
//swcMinify: false, // Required to fix: https://nextjs.org/docs/messages/failed-loading-swc
compiler: {
styledComponents: true,
},
async rewrites() {
return [
{
source: "/home",
destination: "/",
},
];
},
images:{
domains: [
'cdn.discordapp.com',
'res.cloudinary.com',
'arweave.net',
'www.arweave.net',
'amazonaws.com',
'googleapis.com" '
]
},
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
// Fixes npm packages that depend on `fs` module
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
fs: false
}
}
return config
},
};
module.exports = nextConfig;