\r\n \u003C/NuxtLayout>\r\n \u003C/div>\r\n\u003C/template>\r\n```\r\n\r\n- Run the project with `npm run dev` and note that the page has not loaded:\r\n```\r\nPlugin by my-module!\r\n√ Vite server hmr 4 files in 50.259ms\r\n[Vue warn]: Failed to resolve component: NuxtPage\r\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.\r\nPlugin by my-module!\r\n[Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n√ Vite server hmr 4 files in 143.147ms\r\n[Vue warn]: Failed to resolve component: NuxtPage\r\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.\r\nPlugin by my-module!\r\n```\n\n### Describe the bug\n\nNuxt cleverly strips out all router functionality if a project does not have a pages directory. However, this functionality is still removed if an installed module calls 'extendPages', so modules can't actually provide pages unless the project itself already has some, which may not always be the case.\r\n\r\nI think router functionality should be preserved by Nuxt if `extendPages` is called.\r\n\n\n### Additional context\n\nI am creating a module which creates a catch all page so I can do my own routing. I don't want to need to create a page in every project in order for my module's page to take effect. I can imagine other modules will want to act similarly, even if they're only providing more specific routes/pages.\n\n### Logs\n\n_No response_",[2935,2936],{"name":2913,"color":2914},{"name":2924,"color":2925},15060,"Nuxt does not include router functionality when a module calls extendPages unless the project has its own pages directory","2023-01-19T17:44:18Z","https://github.com/nuxt/nuxt/issues/15060",0.648673,{"description":2943,"labels":2944,"number":2947,"owner":2873,"repository":2873,"state":2874,"title":2948,"updated_at":2949,"url":2950,"score":2951},"### Describe the feature\r\n\r\nNuxt routing using folders is a nightmare for complex routes.\r\nCan I suggest a way to generate our custom router file without using the pages:extend hook?\r\n\r\nThe option to define a custom route in router.options.ts is also not good because Nuxt will not extend any new routes you return from the routes function with metadata defined in definePageMeta.\r\n\r\nWe should be able to choose to use a pre-generated routes with page directories or use our own custom rules routing file. With your own custom routing files we could be able to use everything from vue router like regex for matching route.\r\n\r\nThank you.\r\n\r\n### Additional information\r\n\r\n- [ ] Would you be willing to help implement this feature?\r\n- [ ] Could this feature be implemented as a module?\r\n\r\n### Final checks\r\n\r\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\r\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[2945,2946],{"name":2867,"color":2868},{"name":2913,"color":2914},25386,"Add a way to use our own custom routes without folder structure","2024-01-26T10:26:59Z","https://github.com/nuxt/nuxt/issues/25386",0.6496686,{"description":2953,"labels":2954,"number":2955,"owner":2873,"repository":2873,"state":2874,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Discussed in https://github.com/nuxt/nuxt/discussions/22444\r\n\r\n\u003Cdiv type='discussions-op-text'>\r\n\r\n\u003Csup>Originally posted by **sync42johnny** August 2, 2023\u003C/sup>\r\nI'm currently exploring dynamic routing in Nuxt 3 and I came across the documentation that explains how to define dynamic routes in the pages directory. According to the documentation here: https://nuxt.com/docs/guide/directory-structure/pages#dynamic-routes, dynamic routes can be easily defined in the pages directory using the file and directory names. For example:\r\n```\r\n-| pages/\r\n---| index.vue\r\n---| users-[group]/\r\n-----| [id].vue\r\n```\r\nI'm particularly intrigued by the users-[group]/ part of the structure, which seems to suggest that dynamic parameters can be used in parent directory names as well. This could greatly simplify the routing logic for some of my use cases.\r\n\r\nMy question is this: Does Nuxt 3 support the same functionality for server routes? Can I dynamically generate server routes based on parameters like in the users-[group]/ example?\r\n\r\nIf so, could you kindly guide me on how to implement this? If not, are there plans to include this feature in future releases, or could you recommend a workaround?\r\n\r\nYour insights would be greatly appreciated!\r\n\r\nThank you.😀\u003C/div>",[],23704,"🔥Dynamic Routes in Server Routes for Nuxt 3🔥","2023-10-16T20:09:34Z","https://github.com/nuxt/nuxt/issues/23704",0.65751034,{"description":2961,"labels":2962,"number":2964,"owner":2873,"repository":2873,"state":2874,"title":2965,"updated_at":2966,"url":2967,"score":2968},"I would like to have the following URL\r\n/recipes/:slug\r\nto show a page with a recipe.\r\n\r\nHowever, I don't want a page under URL /recipes.\r\n\r\nIf I understand the docs correctly this is not possible? If I create the folder structure (in pages/)\r\n/recipes\r\n________/_slug\r\n________________/index.vue\r\n=> the slug becomes optional and visiting /recipes would also render the index.vue but without a slug.\r\n \r\nIf I have the structure\r\n/recipes\r\n________/_slug\r\n________________/index.vue\r\n________/index.vue\r\n=> the slug becomes required, but now I get a URL /recipes for which I don't want a page.\r\n\r\nQuestion: is this possible using the automated route generation in Nuxt or should I create my router file myself?\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2547\">#c2547\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2963],{"name":2870,"color":2871},2932,"Dynamic route without index file","2023-01-18T16:09:49Z","https://github.com/nuxt/nuxt/issues/2932",0.65910715,["Reactive",2970],{},["Set"],["ShallowReactive",2973],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fEmvxz2RcVFveAZ2bnr2FOP8zK1TnJO7fB1WP_wNAWro":-1},"/nuxt/nuxt/27643"]