From 813fd1e557e2fa6c0b32e615b9b414862bb51247 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 24 Oct 2022 11:34:43 -0400 Subject: [PATCH] feat: nested dir support --- packages/astro/src/content/vite-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/content/vite-plugin.ts b/packages/astro/src/content/vite-plugin.ts index 99e774341..ea0289dce 100644 --- a/packages/astro/src/content/vite-plugin.ts +++ b/packages/astro/src/content/vite-plugin.ts @@ -183,7 +183,7 @@ async function getEntriesByCollection( collectionPath: string, { contentDir }: Pick ): Promise { - const files = await glob(`${collectionPath}/*.{md,mdx}`); + const files = await glob(`${collectionPath}/**/*.{md,mdx}`); return Promise.all( files.map(async (filePath) => { const entryKey = path.relative(collectionPath, filePath);