diff --git a/packages/astro/src/content/runtime.ts b/packages/astro/src/content/runtime.ts index 6831765fb..db565ea63 100644 --- a/packages/astro/src/content/runtime.ts +++ b/packages/astro/src/content/runtime.ts @@ -88,7 +88,7 @@ export function createGetEntryBySlug({ getRenderEntryImport: GetEntryImport; }) { return async function getEntryBySlug(collection: string, slug: string) { - const entryImport = getEntryImport(collection, slug); + const entryImport = await getEntryImport(collection, slug); if (typeof entryImport !== 'function') return undefined; const entry = await entryImport();