aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/app/routes/_index.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend/app/routes/_index.tsx b/frontend/app/routes/_index.tsx
index b82efc4..2fcf1f2 100644
--- a/frontend/app/routes/_index.tsx
+++ b/frontend/app/routes/_index.tsx
@@ -1,10 +1,16 @@
-import type { MetaFunction } from "@remix-run/node";
+import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { Link } from "@remix-run/react";
+import { ensureUserNotLoggedIn } from "../.server/auth";
export const meta: MetaFunction = () => [
{ title: "iOSDC Japan 2024 Albatross.swift" },
];
+export async function loader({ request }: LoaderFunctionArgs) {
+ await ensureUserNotLoggedIn(request);
+ return null;
+}
+
export default function Index() {
return (
<div className="min-h-screen bg-gray-100 flex items-center justify-center">