devIndicators

当您编辑代码且 Next.js 正在编译应用时,页面右下角会出现一个编译指示器。

须知:此指示器仅在开发模式下出现,生产模式构建和运行应用时不会显示。

某些情况下该指示器可能会在页面上错位显示,例如与聊天启动器冲突时。要更改其位置,请打开 next.config.js 并在 devIndicators 对象中设置 buildActivityPositionbottom-right(默认)、bottom-lefttop-righttop-left

next.config.js
module.exports = {
  devIndicators: {
    buildActivityPosition: 'bottom-right',
  },
}

某些情况下该指示器可能对您无用。要移除它,请打开 next.config.js 并在 devIndicators 对象中禁用 buildActivity 配置:

next.config.js
module.exports = {
  devIndicators: {
    buildActivity: false,
  },
}