-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
49 lines (47 loc) · 1.24 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
46
47
48
49
/** @type {import('next').NextConfig} */
const nextConfig = {
// reactStrictMode: true,
swcMinify: true,
// experimental: {
// appDir: true,
// },
webpack5: true,
images: {
formats: ["image/avif", "image/webp"],
dangerouslyAllowSVG: true,
},
typescript: {
// Set this to false if you want production builds to abort if there's type errors
ignoreBuildErrors: process.env.VERCEL_ENV === "production",
},
eslint: {
/// Set this to false if you want production builds to abort if there's lint errors
ignoreDuringBuilds: process.env.VERCEL_ENV === "production",
},
webpack: (config) => {
config.resolve.alias.canvas = false;
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
path: false,
};
return Object.assign({}, config, {
module: Object.assign({}, config.module, {
rules: config.module.rules.concat([
// {
// test: /\.md$/,
// loader: 'emit-file-loader',
// options: {
// name: 'dist/[path][name].[ext]',
// },
// },
{
test: /\.md$/,
loader: "raw-loader",
},
]),
}),
});
},
};
module.exports = nextConfig;