account page render fix

This commit is contained in:
makearmy 2025-09-30 12:50:44 -04:00
parent 170c852bb6
commit 996ebe4757

View file

@ -1,7 +1,15 @@
// app/auth/sign-in/page.tsx
import { Suspense } from "react";
import SignIn from "./sign-in";
// Ensure this page renders at runtime (avoids SSG trying to pre-render a client-only page)
export const dynamic = "force-dynamic";
export default function SignInPage() {
// Do NOT redirect here. Always render the form.
return <SignIn />;
// Wrap the client component (which uses useSearchParams) in Suspense
return (
<Suspense fallback={<div className="p-6">Loading</div>}>
<SignIn />
</Suspense>
);
}