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