I try to generate a custom route inside nuxt.config.js (as said in https://ru.nuxtjs.org/examples/custom-routes/):
router: {
routes: [
{ path: '/brokers/:id/reviews/:page', component: 'pages/reviews-page' }
]
},
But when I open, for example, "/brokers/test/reviews/1",it shows a 404 error. I checked /.nuxt/router.js and didn't see that custom route there, only a direct route:
{
path: "/reviews-page",
component: _7cd44aba,
name: "reviews-page"
},
Am I doing something wrong?
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1555">#c1555</a>)</em></sub></div>