diff --git a/packages/astro/src/core/compile/compile.ts b/packages/astro/src/core/compile/compile.ts index 2985dcab963ed..78a769a7d74e9 100644 --- a/packages/astro/src/core/compile/compile.ts +++ b/packages/astro/src/core/compile/compile.ts @@ -47,7 +47,7 @@ export async function compile({ resultScopedSlot: true, transitionsAnimationURL: 'astro/components/viewtransitions.css', annotateSourceFile: - !viteConfig.isProduction && astroConfig.devOverlay && astroConfig.devOverlay.enabled, + viteConfig.mode === "development" && astroConfig.devOverlay && astroConfig.devOverlay.enabled, preprocessStyle: createStylePreprocessor({ filename, viteConfig,