Skip to content

Commit

Permalink
Await callsite of generated metadata module
Browse files Browse the repository at this point in the history
  • Loading branch information
gadcam authored Oct 28, 2024
1 parent f9535de commit bb268be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export async function createStaticMetadataFromRoute(
// WEBPACK_RESOURCE_QUERIES.metadata query here only for filtering out applying to image loader
)}!${filepath}?${WEBPACK_RESOURCE_QUERIES.metadata}`

const imageModule = `(async (props) => (await import(/* webpackMode: "eager" */ ${JSON.stringify(
const imageModule = `(async (props) => await (await import(/* webpackMode: "eager" */ ${JSON.stringify(
imageModuleImportSource
)})).default(props))`
hasStaticMetadataFiles = true
Expand Down

0 comments on commit bb268be

Please sign in to comment.