fix: update layouts for chat pages
This commit is contained in:
parent
8cf847f7bc
commit
3fd1859005
3 changed files with 10 additions and 23 deletions
11
app/page.tsx
11
app/page.tsx
|
|
@ -1,6 +1,5 @@
|
|||
import { nanoid } from '@/lib/utils'
|
||||
import { Chat } from '@/components/chat'
|
||||
import { Header } from '@/components/header'
|
||||
|
||||
// export const runtime = 'edge'
|
||||
export const preferredRegion = 'home'
|
||||
|
|
@ -8,13 +7,5 @@ export const preferredRegion = 'home'
|
|||
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 id={id} />
|
||||
</main>
|
||||
</div>
|
||||
)
|
||||
return <Chat id={id} />
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue