Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/mini-apps/technical-guides/dynamic-embeds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
(
Expand Down Expand Up @@ -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<Metadata> {
try {
const { username } = await params;
const { username } = params;

return {
title: minikitConfig.miniapp.name,
Expand Down Expand Up @@ -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 (
<div>
Expand Down