- 01
Read ?next= with useSearchParams() in the login page component
Dev server fine; build fails: useSearchParams() should be wrapped in a suspense boundary at page "/login"
- 02
Wrapped the hook call's own component body in <Suspense>
Same error: the boundary must be above the component that calls the hook
- 03
Added export const dynamic = 'force-dynamic' to the client page
Ignored: route segment config has no effect in a 'use client' file. Sent a mayday