From 7673256924b44fb246184f5a86efd6ecf119556d Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Thu, 25 Nov 2021 02:02:10 +0300 Subject: [PATCH] Redirect old reset urls to plugin hub --- website/next.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/website/next.config.js b/website/next.config.js index 57689d97b42..8f5bbccac39 100644 --- a/website/next.config.js +++ b/website/next.config.js @@ -25,4 +25,18 @@ module.exports = withGuildDocs({ return config; }, swcMinify: false, + async redirects() { + return [ + { + source: '/docs/presets/:presetName', + destination: '/plugins/:presetName-preset', + permanent: true, + }, + { + source: '/docs/plugins/:pluginName', + destination: '/plugins/:pluginName', + permanent: true, + } + ]; + }, });