Link to the code that reproduces this issue
i don't have one
To Reproduce
hello i have been getting this error for a while and can't find a way to fix this
Current vs. Expected behavior
Type "Promise<{ params: { id: string; }; }>" is not a valid type for the function's second argument.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
import { NextRequest, NextResponse } from 'next/server';
export async function GET(
request: NextRequest,
context: Promise<{ params: { id: string } }>
) {
const { params } = await context;
const id = params.id;