From 6c60f92245b7e882345dea51a1a4f110c27a59ad Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sat, 29 May 2021 13:49:43 +0200 Subject: [PATCH] refactor(path): removed old route builder --- nuxt.config.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 6f781a67..fd89c16b 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -100,18 +100,5 @@ export default { // Build Configuration (https://go.nuxtjs.dev/config-build) build: {}, - router: { - extendRoutes(routes) { - routes.forEach((route) => { - if (route.path.match(/^\/tools\/.*/)) { - const sections = route.path.split('/') - route.path = `/${sections[sections.length - 1]}` - route.meta = { - isTool: true, - section: sections[sections.length - 2] - } - } - }) - } - } + router: {} }