Home

Issue: 1553

extendRoutes not working

[issue link]

I have test.vue file under pages directory. So /test path automatically works. With the below configuration, I should have got /test1 pointing to that same test.vue file. However, when I load it on browser, I get 404.

    router:{
        extendRoutes(routes,resolve){
            routes.push({
                name:'test1',
                path:'/test1',
                component:resolve(__dirname,'pages/test.vue')
            });
        }
    }
This question is available on Nuxt.js community (#c1384)