Skip to content

catch all route not as expected #3838

Closed

Description

@sulaimon-abiola

is there any idea why for example server/routes/hello/[...name].ts is not displaying content server/routes/hello, then I have to create an index.ts route to see server/routes/hello

Activity

  1. iiio2 commented on Dec 8, 2025

    @iiio2
    Member

    I think when we use [...name] then [...name] is dynamic like server/routes/hello/1,2,3 etc. If we want to get the specific content for server/routes/hello api, then we need to have index.ts which is not dynamic.

  2. RihanArfan commented on Mar 5, 2026

    @RihanArfan
    Member

    The file based route server/routes/hello/[...name].ts is a route which matches /hello/*. You can take a look at the routing docs here https://v3.nitro.build/docs/routing#dynamic-routes

    Let me know if you have any questions or if there's any issue with the routing and I can reopen the issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions