Compare commits

...

1 Commits

Author SHA1 Message Date
google-labs-jules[bot]
c1005c4752 fix(moltbot): wrap MoltbotChat in Suspense to fix build error
Wraps the `MoltbotChat` client component in a `Suspense` boundary in `src/app/services/moltbot/chats/page.tsx`. This resolves the `useSearchParams()` error during static site generation, ensuring the build completes successfully.

Co-authored-by: cloud-neutral <4133689+cloud-neutral@users.noreply.github.com>
2026-01-29 13:12:32 +00:00

View File

@ -1,3 +1,4 @@
import { Suspense } from 'react'
import { MoltbotChat } from './MoltbotChat'
export const metadata = {
@ -8,7 +9,9 @@ export const metadata = {
export default function MoltbotPage() {
return (
<div className="container mx-auto max-w-4xl py-8">
<MoltbotChat />
<Suspense fallback={<div className="flex h-[50vh] items-center justify-center text-slate-400">Loading chat...</div>}>
<MoltbotChat />
</Suspense>
</div>
)
}