-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
37 lines (36 loc) · 790 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
37 lines (36 loc) · 790 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
33
34
35
36
37
const nextConfig = {
output: 'standalone',
devIndicators: false,
reactStrictMode: false,
reactCompiler: true,
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
typescript: {
ignoreBuildErrors: true
},
experimental: {
scrollRestoration: false
},
turbopack: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js'
}
},
resolveExtensions: ['.mdx', '.tsx', '.ts', '.jsx', '.js', '.mjs', '.json', 'css']
},
webpack: config => {
config.module.rules.push({
test: /\.svg$/i,
use: [{ loader: '@svgr/webpack', options: { svgo: false } }]
})
return config
},
async redirects() {
return [
{ source: '/zh', destination: '/', permanent: true },
{ source: '/en', destination: '/', permanent: true }
]
}
}
export default nextConfig