单个路由的配置,用于 routes.ts 中。为了方便起见,路由配置条目可以使用 route、index 和 layout 辅助函数创建。
routes.ts
可选
如果 path 是大小写敏感的,则应为 true。默认为 false。
path
true
false
子路由。
此路由入口点的路径,相对于 config.appDirectory。
config.appDirectory
此路由的唯一 ID。
如果是索引路由,则应为 true。 这将禁用子路由。
此路由用于匹配 URL 路径名的路径。
单个路由的配置,用于
routes.ts
中。为了方便起见,路由配置条目可以使用 route、index 和 layout 辅助函数创建。