fix: pass down id to append
This commit is contained in:
parent
fd99ff634f
commit
92309d77ec
4 changed files with 14 additions and 6 deletions
|
|
@ -1,16 +1,19 @@
|
|||
import { nanoid } from '@/lib/utils'
|
||||
import { Chat } from '@/components/chat'
|
||||
import { Header } from '@/components/header'
|
||||
|
||||
// export const runtime = 'edge'
|
||||
export const preferredRegion = 'home'
|
||||
|
||||
export default async function IndexPage() {
|
||||
export default function IndexPage() {
|
||||
const id = nanoid()
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col">
|
||||
{/* @ts-ignore */}
|
||||
<Header />
|
||||
<main className="flex-1 bg-muted/50">
|
||||
<Chat />
|
||||
<Chat id={id} />
|
||||
</main>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue