-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathnext.config.js
More file actions
32 lines (31 loc) · 768 Bytes
/
next.config.js
File metadata and controls
32 lines (31 loc) · 768 Bytes
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
/** @type {import('next').NextConfig} */
const withTM = require('next-transpile-modules')(['echarts', 'zrender']);
const nextConfig = withTM({
eslint: {
dirs: ['src/'] // Only run ESLint on the 'pages' and 'utils' directories during production builds (next build)
},
images: {
unoptimized: true,
formats: ['image/avif', 'image/webp'],
remotePatterns: [
{
protocol: 'https',
hostname: 'assets.vercel.com',
port: '',
pathname: '/image/upload/**'
}
]
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack']
});
return config;
},
devIndicators: {
buildActivity: false
}
});
module.exports = nextConfig;