typedRoutes
实验性支持静态类型链接 (statically typed links)。此功能要求项目中使用 App Router 和 TypeScript。
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
typedRoutes: true,
},
}
module.exports = nextConfig
实验性支持静态类型链接 (statically typed links)。此功能要求项目中使用 App Router 和 TypeScript。
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
typedRoutes: true,
},
}
module.exports = nextConfig