generated from mantinedev/next-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
44 lines (43 loc) · 1.07 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
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
module.exports = withBundleAnalyzer({
reactStrictMode: false,
eslint: {
ignoreDuringBuilds: true,
},
transpilePackages:[
"antd",
"@ant-design/plots",
"@ant-design/icons",
"@ant-design/icons-svg",
"@ant-design/pro-components",
"@ant-design/pro-layout",
"@ant-design/pro-list",
"@ant-design/pro-descriptions",
"@ant-design/pro-form",
"@ant-design/pro-skeleton",
"@ant-design/pro-field",
"@ant-design/pro-utils",
"@ant-design/pro-provider",
"@ant-design/pro-card",
"@ant-design/pro-table",
"rc-pagination",
"rc-picker",
"rc-util",
"rc-tree",
"rc-tooltip"
],
experimental: {
optimizePackageImports: ['@mantine/core', '@mantine/hooks'],
swcPlugins: [['@swc-jotai/react-refresh', {}]],
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.API_URL || 'https://mock.apifox.com/m1/3497852-0-default'}/:path*`,
},
]
},
});