From db3ef5888ecb5624d53863506e10cd5bee84ef46 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 26 Dec 2023 16:32:40 +0300 Subject: [PATCH 1/2] Add redirect --- nuxt.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index ee9386ec8..dd7c81b78 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -15,7 +15,15 @@ export default defineNuxtConfig({ ], vite: aliasConfig, nitro: { - alias: aliasConfig.resolve.alias + alias: aliasConfig.resolve.alias, + routeRules: { + '/accessibility': { + redirect: { + to: '/guides/accessibility', + statusCode: 301 + } + } + } }, primevue: { options: { From eaf337cd566fcd22703fd2e8ac01e848a59a4f63 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 26 Dec 2023 16:38:15 +0300 Subject: [PATCH 2/2] Add redirect --- nuxt.config.js | 10 +--------- vercel.json | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 vercel.json diff --git a/nuxt.config.js b/nuxt.config.js index dd7c81b78..ee9386ec8 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -15,15 +15,7 @@ export default defineNuxtConfig({ ], vite: aliasConfig, nitro: { - alias: aliasConfig.resolve.alias, - routeRules: { - '/accessibility': { - redirect: { - to: '/guides/accessibility', - statusCode: 301 - } - } - } + alias: aliasConfig.resolve.alias }, primevue: { options: { diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..35c70806b --- /dev/null +++ b/vercel.json @@ -0,0 +1,9 @@ +{ + "redirects": [ + { + "source": "/accessibility", + "destination": "/guides/accessibility", + "permanent": true + } + ] + } \ No newline at end of file