diff --git a/.changeset/fair-bananas-camp.md b/.changeset/fair-bananas-camp.md index f1e284bde..64f55b3ea 100644 --- a/.changeset/fair-bananas-camp.md +++ b/.changeset/fair-bananas-camp.md @@ -2,4 +2,4 @@ 'astro': patch --- -Respect user's configured vite logLevel during build, changes default to `info`. +Respect user's configured vite logLevel during build diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 52567751e..ae08c54dc 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -127,8 +127,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp const out = ssr ? opts.buildConfig.server : astroConfig.outDir; const viteBuildConfig: ViteConfigWithSSR = { - // use default Vite's logLevel if not configured - logLevel: opts.viteConfig.logLevel ?? 'info', + logLevel: opts.viteConfig.logLevel ?? 'error', mode: 'production', css: viteConfig.css, build: {