介紹/API 參考文件/next.config.js 設定選項/instrumentationHookinstrumentationHook 實驗性的 instrumentationHook 選項允許您透過 instrumentation 檔案在 Next.js 應用程式中設定儀器化功能。 next.config.jsmodule.exports = { experimental: { instrumentationHook: true, }, }instrumentation.js關於 instrumentation.js 檔案的 API 參考文件。cacheHandler設定 Next.js 用於儲存和重新驗證資料的快取,以使用任何外部服務如 Redis、Memcached 或其他服務。日誌記錄 (logging)設定在開發模式下執行 Next.js 時,如何將資料獲取記錄到控制台。