介紹/API 參考文檔/next.config.js 設定選項/instrumentationHookinstrumentationHook 實驗性的 instrumentationHook 選項允許您透過 instrumentation 檔案在 Next.js 應用程式中設定儀器化功能。 next.config.jsmodule.exports = { experimental: { instrumentationHook: true, }, }images關於 next/image 加載器的自定義配置onDemandEntries設定 Next.js 在開發環境中如何釋放及保留記憶體中的頁面。