diff --git a/docs/mini-apps/technical-guides/dynamic-embeds.mdx b/docs/mini-apps/technical-guides/dynamic-embeds.mdx index 539f4fef7..a9b1f5421 100644 --- a/docs/mini-apps/technical-guides/dynamic-embeds.mdx +++ b/docs/mini-apps/technical-guides/dynamic-embeds.mdx @@ -38,9 +38,9 @@ export const dynamic = "force-dynamic"; export async function GET( request: Request, - { params }: { params: Promise<{ username: string }> } + { params }: { params: { username: string } } ) { - const { username } = await params; + const { username } = params; return new ImageResponse( ( @@ -85,10 +85,10 @@ import { minikitConfig } from "../../../minikit.config"; import { Metadata } from "next"; export async function generateMetadata( - { params }: { params: Promise<{ username: string }> } + { params }: { params: { username: string } } ): Promise { try { - const { username } = await params; + const { username } = params; return { title: minikitConfig.miniapp.name, @@ -125,9 +125,9 @@ export async function generateMetadata( } export default async function SharePage( - { params }: { params: Promise<{ username: string }> } + { params }: { params: { username: string } } ) { - const { username } = await params; + const { username } = params; return (