Refactor to use ai/rsc (#253)
This commit is contained in:
parent
69ca8fcc22
commit
e85ba803dd
66 changed files with 2799 additions and 740 deletions
18
app/login/page.tsx
Normal file
18
app/login/page.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { auth } from '@/auth'
|
||||
import LoginForm from '@/components/login-form'
|
||||
import { Session } from '@/lib/types'
|
||||
import { redirect } from 'next/navigation'
|
||||
|
||||
export default async function LoginPage() {
|
||||
const session = (await auth()) as Session
|
||||
|
||||
if (session) {
|
||||
redirect('/')
|
||||
}
|
||||
|
||||
return (
|
||||
<main className="flex flex-col p-4">
|
||||
<LoginForm />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue