Skip to content

Commit

Permalink
fix: set correct isSsrBuild value in dev (#15536)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jan 8, 2024
1 parent b44c493 commit fdbe04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export async function resolveConfig(
const configEnv: ConfigEnv = {
mode,
command,
isSsrBuild: !!config.build?.ssr,
isSsrBuild: command === 'build' && !!config.build?.ssr,
isPreview,
}

Expand Down

0 comments on commit fdbe04d

Please sign in to comment.