diff --git a/next.config.js b/next.config.js index 7d09a11..80b704f 100644 --- a/next.config.js +++ b/next.config.js @@ -1,9 +1,19 @@ export const reactStrictMode = false; export const productionBrowserSourceMaps = true; -import createBundleAnalyzer from '@next/bundle-analyzer'; +import createBundleAnalyzer from "@next/bundle-analyzer"; const withBundleAnalyzer = createBundleAnalyzer({ - enabled: process.env.ANALYZE === 'true', + enabled: process.env.ANALYZE === "true", }); -export default withBundleAnalyzer({}); \ No newline at end of file +export default withBundleAnalyzer({ + async redirects() { + return [ + { + source: "/discord", + destination: "https://discord.gg/s2VfQr69uz", + permanent: false, + }, + ]; + }, +}); diff --git a/package-lock.json b/package-lock.json index 3dfb910..80e59bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "mainweb", + "name": "keyyard.github.io", "version": "0.0.0", "lockfileVersion": 3, "requires": true, diff --git a/src/pages/discord.tsx b/src/pages/discord.tsx new file mode 100644 index 0000000..ad654ec --- /dev/null +++ b/src/pages/discord.tsx @@ -0,0 +1,32 @@ +import { useEffect } from "react"; +import Head from "next/head"; + +export default function Discord() { + useEffect(() => { + // Redirect to Discord server + window.location.replace("https://discord.gg/s2VfQr69uz"); + }, []); + + return ( + <> + + Redirecting to Discord... + + +
+

Redirecting to Discord...

+
+ + ); +}