diff --git a/packages/next/src/build/webpack/loaders/next-metadata-image-loader.ts b/packages/next/src/build/webpack/loaders/next-metadata-image-loader.ts index cf18b9fc98ed9..9ea90f598ab10 100644 --- a/packages/next/src/build/webpack/loaders/next-metadata-image-loader.ts +++ b/packages/next/src/build/webpack/loaders/next-metadata-image-loader.ts @@ -88,7 +88,7 @@ async function nextMetadataImageLoader( } export default async function (props) { - const { __metadata_id__: _, ...params } = props.params + const { __metadata_id__: _, ...params } = await props.params const imageUrl = fillMetadataSegment(${JSON.stringify( pathnamePrefix )}, params, ${JSON.stringify(pageSegment)})