\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n\u003Cscript>\r\n\r\nexport default {\r\n head () {\r\n return {\r\n meta: [\r\n { hid: 'description', name: 'description', content: 'My custom description' }\r\n ]\r\n }\r\n },\r\n data () {\r\n return {\r\n navList: [{\r\n title: 'lines',\r\n link: '/lines'\r\n }, {\r\n title: 'traffic',\r\n link: '/traffic'\r\n }]\r\n }\r\n }\r\n}\r\n\u003C/script>\r\n```\r\n\r\n\r\n\r\n\r\nwhen I visit \"http://127.0.0.1:3000\",I expect \"http://127.0.0.1:3000/lines\"\r\n\r\nbut it doesn't work.\r\n\r\n\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/c997\">#c997\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[1984],{"name":1985,"color":1986},"2.x","d4c5f9",1132,"nuxt","closed","extendRoutes doesn't work?","2023-01-18T15:40:52Z","https://github.com/nuxt/nuxt/issues/1132",0.6039349,{"description":1995,"labels":1996,"number":2001,"owner":1988,"repository":1988,"state":1989,"title":2002,"updated_at":2003,"url":2004,"score":2005},"Currently, there is two way for a plugin to manipulate nuxt routes, first is `extendRoutes` function in `ModuleContainer` and the other is `extendRoutes` hook.\r\nThese two works perfectly on a single plugin, but when it comes to the combination of routes of two module this creates an issue.\r\n\r\nInside Nuxt builder hooks calls before API, so a plugin that uses hook cannot change routes of other plugin that uses API to extend routes\r\nhttps://github.com/nuxt/nuxt.js/blob/92c7f4ed249466870a477798f910c84eb1fdd18d/packages/builder/src/builder.js#L397-L413\r\n\r\nI wonder could we change implementation of `extendRoutes` function in `ModuleContainer` and implement it wi hook?\r\nhttps://github.com/nuxt/nuxt.js/blob/560cb57443ada3f16a1073c22f616937f8b581f3/packages/core/src/module.js#L107-L112\r\n\r\n\r\n\u003C!--\r\n🚨 IMPORTANT 🚨\r\n\r\nPlease use the following link to create a new issue:\r\n\r\n- 🚨 Bug report - https://bug.nuxtjs.org/ \r\n- 🙋 Feature request - https://feature.nuxtjs.org/ \r\n- 🤔 Help wanted - https://otechie.com/nuxt \r\n- ❗️ All other issues - https://cmty.nuxtjs.org/ \r\n\r\nIf your issue was not created using the app above, **it will be closed immediately**.\r\n\r\n🚨 注意事项 🚨\r\n\r\n请务必使用下述链接来创建 issue:\r\n\r\n- 🚨 Bug 提交 - https://bug.nuxtjs.org/ \r\n- 🙋 新功能提案 - https://feature.nuxtjs.org/ \r\n- 🤔 寻求帮助 - https://otechie.com/nuxt \r\n- ❗️ 其他问题 - https://cmty.nuxtjs.org/ \r\n\r\n如果 issue 不是通过上述链接进行创建, **该 issue 会被系统自动关闭**\r\n-->\r\n\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c9864\">#c9864\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[1997,2000],{"name":1998,"color":1999},"enhancement","8DEF37",{"name":1985,"color":1986},6516,"extendRoutes: API vs Hook","2023-02-15T00:11:51Z","https://github.com/nuxt/nuxt/issues/6516",0.6261253,{"description":2007,"labels":2008,"number":2010,"owner":1988,"repository":1988,"state":1989,"title":2011,"updated_at":2012,"url":2013,"score":2014},"My usecase is I need to generate only `/` and `/about` routes, other routes require user authentication, Is it possible with current nuxt version?\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/c1899\">#c1899\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2009],{"name":1985,"color":1986},2144,"Nuxt generate - whitelist/blacklist routes","2023-01-18T15:43:10Z","https://github.com/nuxt/nuxt/issues/2144",0.64260864,{"description":2016,"labels":2017,"number":2022,"owner":1988,"repository":1988,"state":1989,"title":2023,"updated_at":2024,"url":2025,"score":2026},"I download nested routes example from https://nuxtjs.org/examples/nested-routes. \r\nAdd generate: {routes: ['/1','/2','/3','/4','/5','/6']} to nuxt.config.js and run next generate.\r\n\r\nAnd here is the problem with nuxt@1.0.0-alpha.4\r\nIn all generated static files there is the same pre-rendered player - Kyrie Irving (id:6)\r\n\r\nAt the same time nuxt-link-active and all javascript data was defined correctly.\r\nLive demo also works like it should. And with nuxt@0.10.6 it also works as expected.\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c769\">#c769\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2018,2021],{"name":2019,"color":2020},"available soon","6de8b0",{"name":1985,"color":1986},896,"Nuxt doesn't generate the nested routes example correctly ","2023-01-18T15:39:56Z","https://github.com/nuxt/nuxt/issues/896",0.64599186,{"description":2028,"labels":2029,"number":2031,"owner":1988,"repository":1988,"state":1989,"title":2032,"updated_at":2033,"url":2034,"score":2035},"files like `user_agreement.vue` are not dynamic routes, but not generated\r\n\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/c1434\">#c1434\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2030],{"name":1985,"color":1986},1606,"nuxt generate skips routes with underscores","2023-01-18T15:42:00Z","https://github.com/nuxt/nuxt/issues/1606",0.6476157,{"description":2037,"labels":2038,"number":2043,"owner":1988,"repository":1988,"state":1989,"title":2044,"updated_at":2045,"url":2046,"score":2047},"### Version\n\n[v2.8.1](https://github.com/nuxt.js/releases/tag/v2.8.1)\n\n### Reproduction link\n\n[https://jsfiddle.net/rftw3a17/](https://jsfiddle.net/rftw3a17/)\n\n### Steps to reproduce\n\n1. Add this to `nuxt.config.js`, just as [described in the docs](https://nuxtjs.org/api/configuration-router/#extendroutes): \n\n\n```\nrouter: {\n extendRoutes(routes, resolve) {\n routes.push({\n name: 'ninja',\n path: '/ninja',\n component: resolve(__dirname, '/pages/about.vue')\n })\n },\n mode: 'history',\n middleware: ['user-agent']\n },\n```\n\n2. Either with the `nuxt-router` module or without `nuxt-router` module, with `router.js` file in the root directory, or without. I have tried all combinations. I have also tried all combinations of component paths: `'/pages/about.vue'`, `'@/pages/about.vue'`, `'./pages/about.vue'`.\n\n\n\n### What is expected ?\n\ngoing to localhost:3000/ninja renders the about.vue component\n\n### What is actually happening?\n\na 404 error is returned. Inspecting `.nuxt/router.js` reveals no such route.\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c9488\">#c9488\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2039,2042],{"name":2040,"color":2041},"pending triage","E99695",{"name":1985,"color":1986},6066,"extendRoutes is broken (?)","2023-01-22T15:34:44Z","https://github.com/nuxt/nuxt/issues/6066",0.6531157,{"description":2049,"labels":2050,"number":2052,"owner":1988,"repository":1988,"state":1989,"title":2053,"updated_at":2054,"url":2055,"score":2056},"I tried to follow the docs and add a custom route, but looks like it's in conflict with the nuxt-created route. What would be the correct way to get a route with an optional parametre?\r\n```\r\nrouter: {\r\n\textendRoutes(routes) {\r\n\t\troutes.push({\r\n\t\t\tname: 'post',\r\n\t\t\tpath: '/posts/:id',\r\n\t\t\talias: '/posts/:id/:slug?',\r\n\t\t\tcomponent: '~pages/posts/_id.vue'\r\n\t\t})\r\n\t}\r\n}\r\n```\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/c178\">#c178\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2051],{"name":1985,"color":1986},208,"How to add an alias for a route?","2023-01-18T15:38:39Z","https://github.com/nuxt/nuxt/issues/208",0.6532419,{"description":2058,"labels":2059,"number":2061,"owner":1988,"repository":1988,"state":1989,"title":2062,"updated_at":2063,"url":2064,"score":2065},"current router\r\n```\r\n page\r\n --- about.vue\r\n --- index.vue\r\n```\r\nI just want to generate an `about` HTML file when using `nuxt generate`, how can I do that?\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/c2362\">#c2362\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2060],{"name":1985,"color":1986},2719,"How to exclude some routes when using nuxt generate","2023-01-18T16:02:30Z","https://github.com/nuxt/nuxt/issues/2719",0.6554501,{"description":2067,"labels":2068,"number":2070,"owner":1988,"repository":1988,"state":1989,"title":2071,"updated_at":2072,"url":2073,"score":2074},"I am using `extendRoutes` in `nuxt.config.js` like so:\r\n\r\n```js\r\nrouter: {\r\n extendRoutes(routes) {\r\n routes.push({\r\n name: 'external',\r\n path: '/external',\r\n component: 'C:\\\\\\\\Users\\\\\\\\ME\\\\\\\\PROJECT\\\\\\\\external\\\\\\\\basic\\\\\\\\external-basic.vue'\r\n });\r\n }\r\n}\r\n```\r\n\r\nThe build runs and it generates a `router.js` file that looks correct:\r\n\r\n```js\r\n{\r\n path: \"/external\",\r\n component: _90d601e2,\r\n name: \"external\"\r\n}\r\n```\r\n\r\nBut, when I load `http://localhost:3000/external` in my browser, I get a 404 not found error.\r\n\r\nWhen I try to start on the home page and follow a link:\r\n\r\n```html\r\n\u003Cnuxt-link to=\"/external\">External Basic\u003C/nuxt-link>\r\n```\r\n\r\nThis results in a network request to `http://localhost:3000/api/users/external`.\r\n\r\nI'm not sure what is going on here. Does anyone know what I am doing wrong or can provide guidance on how to debug this further?\r\n\r\n*`\\\\\\\\` is in the path due to the windows issue mentioned in #275*\r\n\r\nThank you.\r\n\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c254\">#c254\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2069],{"name":1985,"color":1986},299,"`extendRoutes` not working in a very confusing way","2023-01-18T15:38:41Z","https://github.com/nuxt/nuxt/issues/299",0.6573605,{"description":2076,"labels":2077,"number":2080,"owner":1988,"repository":1988,"state":1989,"title":2081,"updated_at":2082,"url":2083,"score":2084},"### Version\n\n[v2.5.1](https://github.com/nuxt.js/releases/tag/v2.5.1)\n\n### Reproduction link\n\nNot really needed\n\n### Steps to reproduce\n\n1. Create nuxt app with `npx create-nuxt-app \u003Cproject-name>`\n2. Create module like https://pastebin.com/gSkQUiKg\n3. Run in dev mode\n4. Update `nuxt.config.js`\n\n### What is expected ?\n\nJust call one time the `extendRoutes`\n\n### What is actually happening?\n\nCall multiple time `extendRoutes`\n\n\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c8937\">#c8937\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2078,2079],{"name":2040,"color":2041},{"name":1985,"color":1986},5391,"Duplicate call extendRoutes","2023-01-22T15:33:04Z","https://github.com/nuxt/nuxt/issues/5391",0.6574276,["Reactive",2086],{},["Set"],["ShallowReactive",2089],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"Nb-5I_8gEE8JIWcnvem7p1pdO3HQ8Cdgqro8t2L_TWI":-1},"/nuxt/nuxt/275"]