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 (#71871)
  • Loading branch information
gadcam authored Oct 28, 2024
1 parent c376f39 commit e5200fd
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 e5200fd

Please sign in to comment.