介紹/API 參考文檔/配置/next.config.js/typedRoutestypedRoutes實驗性支援 靜態類型連結 (statically typed links)。此功能需在專案中使用 App Router 及 TypeScript。 next.config.js/** @type {import('next').NextConfig} */ const nextConfig = { experimental: { typedRoutes: true, }, } module.exports = nextConfigturbopack設定 Next.js 的 Turbopack 專屬選項TypeScriptNext.js 預設會回報 TypeScript 錯誤。在此了解如何停用此行為。