account page render fix
This commit is contained in:
parent
170c852bb6
commit
996ebe4757
1 changed files with 10 additions and 2 deletions
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue