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.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
Redirect first time user to signup
Khuram Niazcff48fc80e02
diff --git a/src/app/page.tsx b/src/app/page.tsxnew file mode 100644index 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");+ }+}