typedRoutes
注: このオプションは安定版とマークされているため、
experimental.typedRoutesの代わりにtypedRoutesを使用する必要があります。
静的に型付けされたリンクのサポート。この機能を利用するには、プロジェクトでTypeScriptを使用する必要があります。
next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
typedRoutes: true,
}
module.exports = nextConfig役に立ちましたか?