browserDebugInfoInTerminal

Forward browser console logs and errors to your terminal during development.

This configuration option has been moved to logging.browserToTerminal.

Migration

To migrate to the new configuration, replace experimental.browserDebugInfoInTerminal with logging.browserToTerminal:

next.config.js
// Before
module.exports = {
  experimental: {
    browserDebugInfoInTerminal: true,
  },
}
 
// After
module.exports = {
  logging: {
    browserToTerminal: true,
  },
}

The new logging.browserToTerminal option supports the log level values (true, 'warn', 'error'). Note that the object configuration options (depthLimit, edgeLimit, showSourceLocation) are no longer available in the new configuration.

VersionChanges
v15.4.0experimental browserDebugInfoInTerminal introduced
v16.2.xMoved to stable as logging.browserToTerminal

On this page