Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

Redirect first time user to signup

Khuram Niazcff48fc80e02
diff --git a/src/app/page.tsx b/src/app/page.tsx
new file mode 100644
index 0000000..11e6a47
--- /dev/null
+++ b/src/app/page.tsx
@@ -0,0 +1,12 @@
+import { redirect } from "next/navigation";
+import db from "@/lib/db";
+
+export default async function RootPage() {
+ const userCount = await db.user.count();
+
+ if (userCount === 0) {
+ redirect("/signup");
+ } else {
+ redirect("/signin");
+ }
+}