useSearchParams() should be wrapped in a suspense boundary at page "...".
Reading useSearchParams in a statically rendered route can force client rendering up to the nearest Suspense boundary. Without that boundary, a production build can fail and the page may otherwise remain blank until JavaScript loads.
Missing Suspense boundary with useSearchParamsrendering
Observed message
useSearchParams() should be wrapped in a suspense boundary at page "...".
Why it happens
A Client Component calls useSearchParams without an ancestor Suspense boundary.
A shared navigation or search component introduces the hook indirectly.
How to fix it
Move the hook into a small child Client Component and wrap that child in Suspense with a useful fallback. The boundary must be above the component calling the hook.
If the page intentionally needs request-time rendering, await connection() in a Server Component on versions supporting that API. On older versions, use the documented server-side dynamic rendering option.
Do not set force-dynamic in a use client page expecting it to take effect. Re-run next build, because development rendering can conceal this static-rendering issue.
Avoid disabling missingSuspenseWithCSRBailout as a general fix: that escape hatch only applies to Next.js 14.x.