GPT-5 finding
Incorrect Next.js route param typing and unnecessary await on params
lowapi-contracthigh
- dashboard/app/api/runs/[id]/logs/route.ts:24-30
Next.js passes `{ params: { id: string } }` synchronously; typing as Promise and awaiting is incorrect and degrades type safety. While `await` on a non-thenable works at runtime, it’s misleading and invites further misuse.
Recommendation
Change signature to `export async function GET(_request: Request, { params }: { params: { id: string } })` and remove `await` usage.