Skip to content

Documentation of routing API untested, doesn't align with reality #3936

@cefn

Description

@cefn

Environment

Online documentation

Reproduction

See the linked documentation URL

Describe the bug

Looking at https://github.com/nitrojs/nitro/blob/72b037f60b701d2cab8f7c268313d4d61b143244/docs/1.docs/5.routing.md#route-rules we have an import of a function defineNitroConfig which is never used and an invocation of a function defineConfig which doesn't exist.

The example proceeds to populate a single key called '/blog/**' 4 times in ways that Javascript objects cannot possibly support.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions