-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
29 lines (28 loc) · 841 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
29 lines (28 loc) · 841 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
experimental: {
appDir: true,
},
webpack: (config) => {
config.externals = [...config.externals, "canvas", "jsdom","encoding","detalib"];
config.resolve.fallback = { fs: false };
return config;
},
compiler: {
removeConsole:process.env.NODE_ENV === 'production' ? { exclude: ['error'] } : false,
},
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
// ignoreDuringBuilds: true,
},
// typescript: {
// // !! WARN !!
// // Dangerously allow production builds to successfully complete even if
// // your project has type errors.
// // !! WARN !!
// ignoreBuildErrors: true,
// },
}
export default nextConfig