Next.js-style
TheFileSystemRouter
class can resolve routes against a pages
directory. (The Next.js 13 app
directory is not yet supported.) Consider the following pages
directory:
FileSystemRouter
can be used to resolve routes against this directory:
router.ts
query
property.
params
property:
.match()
method also accepts Request
and Response
objects. The url
property will be used to resolve the route.
.reload()
method.