diff --git a/app/page.tsx b/app/page.tsx index 6346d08..f29a66d 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -9,8 +9,42 @@ import { SignUpForm } from "./signup-form" import { WelcomeBackCard } from "./welcome-back-card" import { SubmitButton } from "@/components/submit-button" +import { + Card, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/components/ui/card" + export default async function Home() { - const session = await appClient.getSession() + let session; + let error; + + try { + const session = await appClient.getSession() + } catch (e) { + error = e instanceof Error ? e : new Error('An unexpected error occurred') + } + + + if (error) { + return ( +
+ + + Configuration Issue + Verify that all setup steps have been followed correctly as outlined in the README documentation. + + + + + +
+ ) + } + return (
@@ -31,8 +65,8 @@ export default async function Home() { className="text-sm underline" href="/api/auth/login" > - Log in - + Log in +
)} diff --git a/package-lock.json b/package-lock.json index 211fc7c..3dd2583 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "date-fns": "^3.6.0", "execa": "^9.1.0", "lucide-react": "^0.379.0", - "next": "^14.2.5", + "next": "^14.2.3", "next-themes": "^0.3.0", "ora": "^8.0.1", "react": "^18.3.1",