Dynamic params are now Promises; type as { params: Promise<{ id: string }> } and await params to resolve TS complaints.
Example:
How to solve async params TypeScript errors in Next.js 16 API routes?
Dynamic params are now Promises; type as { params: Promise<{ id: string }> } and await params to resolve TS complaints.
Example: