From c6de9ae5ec886b595dcfec81ce5cbcc09fc281bf Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Thu, 28 Jul 2022 15:16:38 +0200 Subject: [PATCH] add missing redirects as per issue --- next.config.js | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/next.config.js b/next.config.js index 7ca34f0..976b767 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,55 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + async redirects() { + return [ + { + source: "/discord", + destination: "https://discord.gg/NBXq95C", + statusCode: 307, + }, + { + source: "/dc", + destination: "/discord", + statusCode: 307, + }, + { + source: "/dsc", + destination: "/discord", + statusCode: 307, + }, + { + source: "/github", + destination: "https://github.com/gractwo", + statusCode: 307, + }, + { + source: "/gh", + destination: "/github", + statusCode: 307, + }, + { + source: "/youtube", + destination: "https://www.youtube.com/channel/UCM5O0ltiO_ZigZiP-Wa28Ew", + statusCode: 307, + }, + { + source: "/yt", + destination: "/youtube", + statusCode: 307, + }, + { + source: "/twitter", + destination: "https://twitter.com/gractwo", + statusCode: 307, + }, + { + source: "/twt", + destination: "/twitter", + statusCode: 307, + }, + ]; + }, }; module.exports = nextConfig;