Overview
Router Schema
s.router(router, schema)
A shorthand for creating router configurations. This combines s.record(schema).router(router) into a single call.
Use this to define page routes in your application, where each key in the record represents a URL path.
See:
/docs/page-routerOptions:
router: Router
The router configuration (e.g., nextAppRouter for Next.js App Router).
nextAppRouter
schema: Schema
The schema for each route's content.
s.object({ title: s.string() })
Methods:
.validate: method
Custom validation function