-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
62 lines (56 loc) · 1.41 KB
/
next.config.js
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
57
58
59
60
61
62
const withAntdLess = require('next-plugin-antd-less')
const withImages = require('next-images')
const redirects = {
async redirects() {
return [
{
source: '/dashboards',
destination: '/dashboards/tasks',
permanent: true,
},
]
},
}
module.exports = withAntdLess({
reactStrictMode: false,
compiler: {
styledComponents: true,
},
// optional: you can modify antd less variables directly here
// modifyVars: { '@primary-color': '#04f' },
// Or better still you can specify a path to a file
// lessVarsFilePath: './styles/variables.less',
// optional
// lessVarsFilePathAppendToEndOfContent: false,
// optional https://github.com/webpack-contrib/css-loader#object
// cssLoaderOptions: {},
// Other Config Here...
output: 'standalone',
// compiler: {
// styledComponents: true,
// },
images: {
domains: ['minio.aws.abraham.fun'],
},
compiler: {
styledComponents: true,
},
env: {
EDEN_API_URL: 'https://api.eden.art',
},
...withImages(redirects),
// webpack(config) {
// return config
// },
webpack(config, { isServer }) {
if (!isServer) {
config.optimization.minimizer.forEach(plugin => {
if (plugin.constructor.name === 'TerserPlugin') {
plugin.options.terserOptions.compress.drop_console = false
}
})
}
return config
},
//extends: ['eslint:recommended', 'next'],
})