diff --git a/app/api/gtm/[id]/route.ts b/app/api/gtm/[id]/route.ts index 7496236..cf7852c 100644 --- a/app/api/gtm/[id]/route.ts +++ b/app/api/gtm/[id]/route.ts @@ -2,9 +2,9 @@ import { NextRequest, NextResponse } from 'next/server'; export async function GET( request: NextRequest, - { params }: { params: { id: string } } + { params }: { params: Promise<{ id: string }> } ) { - const { id } = params; + const { id } = await params; try { const response = await fetch(