Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -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({});
export default withBundleAnalyzer({
async redirects() {
return [
{
source: "/discord",
destination: "https://discord.gg/s2VfQr69uz",
permanent: false,
},
];
},
});
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions src/pages/discord.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<>
<Head>
<title>Redirecting to Discord...</title>
<meta
httpEquiv="refresh"
content="0; url=https://discord.gg/s2VfQr69uz"
/>
</Head>
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100vh",
fontFamily: "system-ui, -apple-system, sans-serif",
}}
>
<p>Redirecting to Discord...</p>
</div>
</>
);
}