diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 16ea049c1..52567751e 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -127,7 +127,8 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp const out = ssr ? opts.buildConfig.server : astroConfig.outDir; const viteBuildConfig: ViteConfigWithSSR = { - logLevel: 'error', + // use default Vite's logLevel if not configured + logLevel: opts.viteConfig.logLevel ?? 'info', mode: 'production', css: viteConfig.css, build: {