From 85c0cead01f35a5c61ff261cb90c35e77453ca13 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Oct 2025 21:50:31 +0000 Subject: [PATCH 1/4] Initial plan From ea054998ebd4de6b16d2c6968f97587c8e217af6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Oct 2025 21:53:29 +0000 Subject: [PATCH 2/4] Initial exploration complete Co-authored-by: Keyyard <84187238+Keyyard@users.noreply.github.com> --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From c573f86ee4a12f765fe8f5d363e9b3d99bdf96a2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Oct 2025 21:58:14 +0000 Subject: [PATCH 3/4] Add Discord redirect page and configuration Co-authored-by: Keyyard <84187238+Keyyard@users.noreply.github.com> --- next.config.js | 12 +++++++++++- src/pages/discord.tsx | 27 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/pages/discord.tsx diff --git a/next.config.js b/next.config.js index 7d09a11..13a7ff4 100644 --- a/next.config.js +++ b/next.config.js @@ -6,4 +6,14 @@ const withBundleAnalyzer = createBundleAnalyzer({ 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, + }, + ]; + }, +}); \ No newline at end of file diff --git a/src/pages/discord.tsx b/src/pages/discord.tsx new file mode 100644 index 0000000..202eb26 --- /dev/null +++ b/src/pages/discord.tsx @@ -0,0 +1,27 @@ +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...

+
+ + ); +} From 41c9a9ea1b2db463eece29b186f5ce97be5eab5a Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 21:59:05 +0000 Subject: [PATCH 4/4] style: format code with Prettier This commit fixes the style issues introduced in c573f86 according to the output from Prettier. Details: https://github.com/Keyyard/keyyard.github.io/pull/41 --- next.config.js | 10 +++++----- src/pages/discord.tsx | 27 ++++++++++++++++----------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/next.config.js b/next.config.js index 13a7ff4..80b704f 100644 --- a/next.config.js +++ b/next.config.js @@ -1,19 +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({ async redirects() { return [ { - source: '/discord', - destination: 'https://discord.gg/s2VfQr69uz', + source: "/discord", + destination: "https://discord.gg/s2VfQr69uz", permanent: false, }, ]; }, -}); \ No newline at end of file +}); diff --git a/src/pages/discord.tsx b/src/pages/discord.tsx index 202eb26..ad654ec 100644 --- a/src/pages/discord.tsx +++ b/src/pages/discord.tsx @@ -1,25 +1,30 @@ -import { useEffect } from 'react'; -import Head from 'next/head'; +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'); + window.location.replace("https://discord.gg/s2VfQr69uz"); }, []); return ( <> Redirecting to Discord... - + -
+

Redirecting to Discord...