Skip to content

Commit

Permalink
Fix missing await of params when metadata is used with an image f…
Browse files Browse the repository at this point in the history
…ile (vercel#71871)
  • Loading branch information
gadcam authored and stipsan committed Nov 6, 2024
1 parent 05303a0 commit 64ed44d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ async function nextMetadataImageLoader(
return `\
import { fillMetadataSegment } from 'next/dist/lib/metadata/get-metadata-route'
export default (props) => {
export default async (props) => {
const imageData = ${JSON.stringify(imageData)}
const imageUrl = fillMetadataSegment(${JSON.stringify(
pathnamePrefix
)}, props.params, ${JSON.stringify(pageSegment)})
)}, await props.params, ${JSON.stringify(pageSegment)})
return [{
...imageData,
Expand Down

0 comments on commit 64ed44d

Please sign in to comment.