Using $fetch inside app folder to get the the list of routes
Currently, I'm using this approach to get the list of the routes
https://nuxt.com/docs/guide/going-further/custom-routing#router-options
Looking into the docs for me it's not clear if using $fetch inside the app folder to get the list of routes from the server will also triggered on the client or if it works as the useFetch that transfers state from the server to the client
Can someone clarify me on this?
Thanks
Nuxt
Custom Routing · Nuxt Advanced
In Nuxt 3, your routing is defined by the structure of your files inside the pages directory. However, since it uses vue-router under the hood, Nuxt offers you several ways to add custom routes in your project.
1 Reply
Manage this by using the pages:extended hook on the nuxt config