-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
34 lines (30 loc) · 1.09 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
};
/**
* @0xFable - Suppress errant recoil errors which seem to occur due to hot reloading
* When using the app there is constant recoil warnings in the logs that users could see which indicate
* almost fatal issues with the state.
* Rather than this meaning an issue, on multiple SSR based frameworks there is an issue noted with seeing this on refreshes
* possible because the state/pages are being loaded with hot module replacement
* For more info go here: https://github.com/facebookexperimental/Recoil/issues/733
*/
const intercept = require('intercept-stdout');
// safely ignore recoil stdout warning messages
function interceptStdout(text) {
if (text.includes('Duplicate atom key')) {
return '';
}
return text;
}
// Intercept in dev and prod
intercept(interceptStdout);
module.exports = nextConfig;