fix: use error
log level since warnings are irrelevant and noisy (#3436)
This commit is contained in:
parent
58b78229c1
commit
62036eefc8
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue