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