DJ Kondzio
How to disable automatic route generation in Nuxt 3?
I'm trying to figure out how to disable automatic route generation and create a file to define them manually. I created a file with routes, a plugin to use a custom router, and disabled the pages folder, but it didn't help. I'm getting the following message on the page:
setting getter-only property "$router"
.
I'd like to have it set up so that routes are defined like this: /views/<PageName>/Page.vue
, for example, /views/HomeView/Page.vue
, and components are located in the folder /views/HomeView/components/<ComponentName>.vue
.1 replies