aboutsummaryrefslogtreecommitdiff
path: root/web/src/app/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/app/page.js')
-rw-r--r--web/src/app/page.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/src/app/page.js b/web/src/app/page.js
new file mode 100644
index 0000000..1890f99
--- /dev/null
+++ b/web/src/app/page.js
@@ -0,0 +1,15 @@
+import { redirect } from "next/navigation";
+import SignIn from "@/app/components/sign-in";
+import { auth } from "@/lib/auth";
+
+export default async function Home() {
+ const session = await auth();
+ if (session) redirect("/dashboard");
+ return (
+ <>
+ <main>
+ <SignIn />
+ </main>
+ </>
+ );
+}