diff --git a/vike/node/api/resolveConfig.ts b/vike/node/api/resolveConfig.ts index 4f6d73077b..da5c2a9d1d 100644 --- a/vike/node/api/resolveConfig.ts +++ b/vike/node/api/resolveConfig.ts @@ -20,7 +20,7 @@ async function resolveConfig(viteConfig: InlineConfig, command: 'build' | 'serve nodeEnv, command === 'preview' ).catch((error) => { - if (isVikeCli) { + if (!isVikeCli) { throw error } console.error(pc.red(`error resolving config:\n${error.stack}`), {