Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Jun 30, 2022
1 parent 966ead4 commit aed31c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export type { RenderBuiltAssetUrl } from './build'
export interface ConfigEnv {
command: 'build' | 'serve'
mode: string
ssrBuild: boolean
ssrBuild: boolean | string
}

/**
Expand Down Expand Up @@ -378,7 +378,7 @@ export async function resolveConfig(
const configEnv = {
mode,
command,
ssrBuild: !!config.ssr || !!config.build?.ssr
ssrBuild: config.build?.ssr ?? false
}

let { configFile } = config
Expand Down
2 changes: 1 addition & 1 deletion playground/ssr-vue/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig(({ command, ssrBuild }) => ({
if (id === '@foo') {
// Force a mismatch error if ssrBuild is different from ssrFromOptions
return `export default { msg: '${
command === 'build' && ssrBuild !== ssrFromOptions
command === 'build' && !!ssrBuild !== ssrFromOptions
? `defineConfig ssrBuild !== ssr from load options`
: 'hi'
}' }`
Expand Down

0 comments on commit aed31c7

Please sign in to comment.