mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: wrap cli-preview content in Suspense boundary
Fixes Next.js build error: useSearchParams() requires Suspense boundary for static generation.
This commit is contained in:
parent
44f9b0366b
commit
19b94cf3a7
1 changed files with 9 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import type { Metadata } from "next"
|
||||
import { Suspense } from "react"
|
||||
|
||||
import { SEO } from "@/lib/seo"
|
||||
import { ogImageUrl } from "@/lib/og"
|
||||
|
|
@ -45,5 +46,12 @@ export const metadata: Metadata = {
|
|||
}
|
||||
|
||||
export default function CliPreviewPage() {
|
||||
return <CliPreviewContent />
|
||||
return (
|
||||
<Suspense
|
||||
fallback={
|
||||
<div className="min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-gray-950 dark:to-gray-900" />
|
||||
}>
|
||||
<CliPreviewContent />
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue