diff --git a/packages/astro/src/content/template/virtual-mod.mjs b/packages/astro/src/content/template/virtual-mod.mjs index 11097777c..e68e5bc48 100644 --- a/packages/astro/src/content/template/virtual-mod.mjs +++ b/packages/astro/src/content/template/virtual-mod.mjs @@ -28,13 +28,13 @@ const collectionToEntryMap = createCollectionToGlobResultMap({ contentDir, }); -function createGlobLookup(entryGlob) { +function createGlobLookup(glob) { return async (collection, lookupId) => { const { default: lookupMap } = await import('@@LOOKUP_MAP_PATH@@'); const filePath = lookupMap[collection]?.[lookupId]; if (!filePath) return undefined; - return entryGlob[collection][filePath]; + return glob[collection][filePath]; }; }