79371052

Date: 2025-01-20 10:58:34
Score: 0.5
Natty:
Report link

You're getting this error because in Next.js 15, params is actually a Promise that needs to be awaited. Here is how you can fix this:

export async function GET(
  request: Request,
  params: { params: Promise<{ id: string }> }
) {
  const id = await params.id
  // rest of your code
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: BrokenDetector