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

+1-1
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)