Skip to content

Commit

Permalink
throw if not cli fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nitedani committed Feb 13, 2024
1 parent 0378c87 commit 5ce348c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vike/node/api/resolveConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`), {
Expand Down

0 comments on commit 5ce348c

Please sign in to comment.