Skip to content

script breaks if instance contains wildcard redirects #54

@giseleblair

Description

@giseleblair

When trying to render nextjs website locally by using npm run dev the following error message will display:

Error parsing `/wildcard/*/` https://nextjs.org/docs/messages/invalid-route-source
Reason: Unexpected MODIFIER at 10, expected END

  /wildcard/*/
            ^

`source` parse failed for route {"source":"/wildcard/*/","destination":"/test/$1/","permanent":true}


Error: Invalid redirect found

Instance wildcard redirect is set up as follows:

Screenshot 2023-02-16 at 9 31 17 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions