From dbbab21bcb35fe9857694c0c3adf02b14f22106a Mon Sep 17 00:00:00 2001 From: NK Date: Wed, 1 Mar 2023 20:19:50 +0000 Subject: [PATCH] discord --- package.json | 2 +- pages/discord.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 pages/discord.js diff --git a/package.json b/package.json index ad6b5dd..6ebfca4 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@material-ui/icons": "^4.11.2", "axios": "^0.24.0", "framer-motion": "^4", - "mongodb": "^4.1.4", + "mongodb": "^3.5.9", "next": "^12.0.4", "next-auth": "^3.27.0", "react": "^17.0.2", diff --git a/pages/discord.js b/pages/discord.js new file mode 100644 index 0000000..a0e4727 --- /dev/null +++ b/pages/discord.js @@ -0,0 +1,9 @@ +import {useRouter} from "next/router"; +import {useEffect} from "react"; +export default function discord() { + const page = useRouter(); + useEffect(() => { + page.push("http://discord.gg/SbQHChmGcp"); + }, []); + return () => null; +}