module.exports = {
experimental: {
removeConsole: {
exclude: ['error'],
},
// Uncomment this to suppress all logs.
// removeConsole: true,
},
}
解开注释, next.js 将会移除掉 除error之外的所有log日志输出
module.exports = {
experimental: {
removeConsole: {
exclude: ['error'],
},
// Uncomment this to suppress all logs.
// removeConsole: true,
},
}
解开注释, next.js 将会移除掉 除error之外的所有log日志输出