zesty-io / nextjs-starter

NextJS Starter Example for Running Zesty.io CMS
The Unlicense
9 stars 6 forks source link

script breaks if instance contains wildcard redirects #54

Open giseleblair opened 1 year ago

giseleblair commented 1 year ago

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