Skip to content

Commit 98b3160

Browse files
authored
fix(preview): use preview https config, not server (#19633)
1 parent b31faab commit 98b3160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export async function preview(
137137
)
138138
}
139139

140-
const httpsOptions = await resolveHttpsConfig(config.server.https)
140+
const httpsOptions = await resolveHttpsConfig(config.preview.https)
141141
const app = connect() as Connect.Server
142142
const httpServer = await resolveHttpServer(config.preview, app, httpsOptions)
143143
setClientErrorHandler(httpServer, config.logger)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy