From b2bf11c04cdcffb24da86f77ba4981b2cd9449e2 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 2 Oct 2024 11:32:08 +0200 Subject: [PATCH] Fix missing `await` of `params` when metadata is used --- .../src/build/webpack/loaders/next-metadata-image-loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)})