feat: use Vite's logLevel on SSR build (#3431)

Instead using `error` as default value, use the Vite's default `logLevel`: `info`
This commit is contained in:
Joaquín Sánchez 2022-05-24 18:30:43 +02:00 committed by GitHub
parent 752a108808
commit 9ba2c7084a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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