-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
55 lines (52 loc) · 1.28 KB
/
next.config.js
File metadata and controls
55 lines (52 loc) · 1.28 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
51
52
53
54
55
/* eslint-disable import/no-extraneous-dependencies */
const withBundleAnalyzer =
process.env.ANALYZE === 'true'
? require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
: (x) => x;
module.exports = withBundleAnalyzer({
swcMinify: true,
eslint: {
ignoreDuringBuilds: true,
dirs: ['.'],
},
poweredByHeader: false,
trailingSlash: true,
basePath: '',
// The starter code load resources from `public` folder with `router.basePath` in React components.
// So, the source code is "basePath-ready".
// You can remove `basePath` if you don't need it.
reactStrictMode: true,
i18n: {
locales: ['en-US', 'ja-JP', 'zh-CN'],
defaultLocale: 'en-US',
},
typescript: {
ignoreBuildErrors: true,
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
config.plugins = config.plugins.filter(plugin => {
return plugin.constructor.name !== "ForkTsCheckerWebpackPlugin";
});
return config;
},
async redirects() {
return [
{
source: '/company',
destination: '/company/vision',
permanent: true,
},
{
source: '/works',
destination: '/works/0',
permanent: true,
}
]
},
});