Spaces:
Runtime error
Runtime error
Commit ·
dc08763
1
Parent(s): 5fe7352
fix: wrap login and register pages in Suspense to fix build
Browse files- src/app/login/page.tsx +4 -1
- src/app/register/page.tsx +4 -1
src/app/login/page.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import { SignInForm } from "@/components/auth/sign-in-form";
|
| 2 |
import Link from "next/link";
|
|
|
|
| 3 |
|
| 4 |
export default function LoginPage() {
|
| 5 |
return (
|
|
@@ -10,7 +11,9 @@ export default function LoginPage() {
|
|
| 10 |
<h1 className="text-3xl font-bold">Login</h1>
|
| 11 |
<p className="text-gray-500 dark:text-gray-400">Enter your email below to login to your account</p>
|
| 12 |
</div>
|
| 13 |
-
<
|
|
|
|
|
|
|
| 14 |
<div className="mt-4 text-center text-sm">
|
| 15 |
Don't have an account?{" "}
|
| 16 |
<Link href="/register" className="underline">
|
|
|
|
| 1 |
import { SignInForm } from "@/components/auth/sign-in-form";
|
| 2 |
import Link from "next/link";
|
| 3 |
+
import { Suspense } from "react";
|
| 4 |
|
| 5 |
export default function LoginPage() {
|
| 6 |
return (
|
|
|
|
| 11 |
<h1 className="text-3xl font-bold">Login</h1>
|
| 12 |
<p className="text-gray-500 dark:text-gray-400">Enter your email below to login to your account</p>
|
| 13 |
</div>
|
| 14 |
+
<Suspense fallback={<div className="h-64 flex items-center justify-center">Loading...</div>}>
|
| 15 |
+
<SignInForm />
|
| 16 |
+
</Suspense>
|
| 17 |
<div className="mt-4 text-center text-sm">
|
| 18 |
Don't have an account?{" "}
|
| 19 |
<Link href="/register" className="underline">
|
src/app/register/page.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import { SignUpForm } from "@/components/auth/sign-up-form";
|
| 2 |
import Link from "next/link";
|
|
|
|
| 3 |
|
| 4 |
export default function RegisterPage() {
|
| 5 |
return (
|
|
@@ -10,7 +11,9 @@ export default function RegisterPage() {
|
|
| 10 |
<h1 className="text-3xl font-bold">Sign Up</h1>
|
| 11 |
<p className="text-gray-500 dark:text-gray-400">Enter your information to create an account</p>
|
| 12 |
</div>
|
| 13 |
-
<
|
|
|
|
|
|
|
| 14 |
<div className="mt-4 text-center text-sm">
|
| 15 |
Already have an account?{" "}
|
| 16 |
<Link href="/login" className="underline">
|
|
|
|
| 1 |
import { SignUpForm } from "@/components/auth/sign-up-form";
|
| 2 |
import Link from "next/link";
|
| 3 |
+
import { Suspense } from "react";
|
| 4 |
|
| 5 |
export default function RegisterPage() {
|
| 6 |
return (
|
|
|
|
| 11 |
<h1 className="text-3xl font-bold">Sign Up</h1>
|
| 12 |
<p className="text-gray-500 dark:text-gray-400">Enter your information to create an account</p>
|
| 13 |
</div>
|
| 14 |
+
<Suspense fallback={<div className="h-64 flex items-center justify-center">Loading...</div>}>
|
| 15 |
+
<SignUpForm />
|
| 16 |
+
</Suspense>
|
| 17 |
<div className="mt-4 text-center text-sm">
|
| 18 |
Already have an account?{" "}
|
| 19 |
<Link href="/login" className="underline">
|