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