fix: use error log level since warnings are irrelevant and noisy (#3436)

This commit is contained in:
Nate Moore 2022-05-24 14:38:39 -05:00 committed by GitHub
parent 58b78229c1
commit 62036eefc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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: {