Skip to content
Discussion options

You must be logged in to vote

Hi,

You had the Promise wrapper at the wrong level:

 { params }: { params: Promise<{ slug: string }> }

So you'd need to change to:

export async function GET(
  request: NextRequest,
  context: { params: Promise<{ id: string }> }
) {
  const params = await context.params;
  const id = params.id;

Something like that. I'll move this to a discussion to get confirmation that you fixed this.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@anime-kun32
Comment options

@oceanminded28
Comment options

@oceanminded28
Comment options

@phstc
Comment options

@icyJoseph
Comment options

Answer selected by anime-kun32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
invalid link The issue was auto-closed due to a missing/invalid reproduction link. A new issue should be opened.
4 participants
Converted from issue

This discussion was converted from issue #79440 on May 22, 2025 09:27.