diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index c0fc78ff1..9f486ac9a 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -97,7 +97,7 @@ async function generatePages(result: RollupOutput, opts: StaticBuildOptions, int debug(opts.logging, 'generate', 'End build step, now generating'); const generationPromises = []; for (let output of result.output) { - if (output.type === 'chunk' && output.facadeModuleId) { + if (output.type === 'chunk' && output.facadeModuleId && output.facadeModuleId.endsWith('.astro')) { generationPromises.push(generatePage(output, opts, internals, facadeIdToPageDataMap)); } }