devIndicators

當您編輯程式碼且 Next.js 正在編譯應用程式時,頁面右下角會出現一個編譯指示器。

須知:此指示器僅在開發模式下出現,在生產模式下建置和執行應用程式時不會顯示。

在某些情況下,此指示器可能會在頁面上位置不當,例如與聊天啟動器衝突。若要變更其位置,請開啟 next.config.js 並在 devIndicators 物件中將 buildActivityPosition 設定為 bottom-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,
  },
}