Organize folders?
Hey. I would like to know if there's any way of keeping that
profile.vue
and profile
together?
Since we are forced to use this kinda x.vue
+ x-folder/index.vue
setup to use nested <NuxtPage />
5 Replies
All I can find, is that other meta frameworks have something like this where folders in brackets get treated as being one level below.
aka.
pages/(Profile)/**
-> pages/**

Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
It happened! Thanks Nuxt Team 😍 https://nuxt.com/blog/v3-13#%EF%B8%8F-route-groups
Nuxt
Nuxt 3.13 · Nuxt Blog
Nuxt 3.13 is out - porting back some of the new features we're building for Nuxt 4!
Move your profile.vue into /profile as an index.vue file
(just saw Bric's reply!)
As far as i know there is.
profile.vue
will be like parent wrapper for each of page under your profile folder and you just have to put <nuxt-page/>
inside it to render each route.