Builder returned invalid routes

Question

Hi,
I’m trying out Vercel for the first time with a Nuxt site, but I’m getting the error mentioned in the title:

Error: Builder returned invalid routes: [“Route at index 7 has invalid src regular expression "^**$".”]

There are a few variations of the same error in the discussions on GitHub (but not here); unfortunately, none of them helped me solve my problem!

The site should eventually be deployed to:
https://karagoz-docs-git-main-frontendat.vercel.app/

I would appreciate any hints to the solution :pray:

Thanks,
Mahmoud

it has been resolved. In my Nuxt config I had used ‘**’ as a pattern in the routeRules. That was working locally, but on production it was causing the problem apparently. It worked after changing the pattern to ‘/*’

1 Like

Thanks for coming back with what worked for you!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.