[Vuejs]-Is there a limit to the depth of nested routes you can do in Nuxt.js?

4👍

Nuxt passes all files found with the glob pages/**/*.{vue,js} (** means as many subdirectories as the OS can handle) to the createRoutes() method.

I also couldn’t find a limitation in the createRoutes() method.

However, with deep nesting you’re adding (unnecessary?) complexity to your system and at some point you might run into the limits of how long an url can be.
I recommend to keep the nesting shallow.

Leave a comment