Skip to content

Commit

Permalink
fix: don't override user config (#7034)
Browse files Browse the repository at this point in the history
  • Loading branch information
otakustay committed Feb 23, 2022
1 parent 2debb9f commit 8fd8f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/http.ts
Expand Up @@ -126,7 +126,7 @@ export async function resolveHttpsConfig(
): Promise<HttpsServerOptions | undefined> {
if (!https) return undefined

const httpsOption = isObject(https) ? https : {}
const httpsOption = isObject(https) ? { ...https } : {}

const { ca, cert, key, pfx } = httpsOption
Object.assign(httpsOption, {
Expand Down

0 comments on commit 8fd8f6e

Please sign in to comment.