-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
45 lines (43 loc) · 1.03 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
/** @type {import('next').NextConfig} */
const nextConfig = {
trailingSlash: true,
reactStrictMode: true,
swcMinify: true,
images: {
loader: 'custom',
},
webpack: (
config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => {
config.resolve.extensions = ['.ts', '.js', '.json']
// config.module.rules.push({
// test: /\.(woff|woff2|eot|ttf|svg)$/,
// use: [
// {
// loader: 'url-loader',
// options: {
// limit: 100000
// }
// },
// ],
// })
return config
},
eslint: {
// Warning: Dangerously allow production builds to successfully complete even if
// your project has ESLint errors.
// TODO: Remove me when all the ts errors are figured out.
ignoreDuringBuilds: true,
},
exportPathMap: async function (
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {
return {
'/': { page: '/' },
'/admin': { page: '/admin' }
}
}
}
module.exports = nextConfig