File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,7 @@ export async function resolveHttpServer(
121121}
122122
123123export async function resolveHttpsConfig (
124- https : boolean | HttpsServerOptions | undefined ,
125- cacheDir : string
124+ https : boolean | HttpsServerOptions | undefined
126125) : Promise < HttpsServerOptions | undefined > {
127126 if ( ! https ) return undefined
128127
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export async function preview(
8282 const httpServer = await resolveHttpServer (
8383 config . preview ,
8484 app ,
85- await resolveHttpsConfig ( config . preview ?. https , config . cacheDir )
85+ await resolveHttpsConfig ( config . preview ?. https )
8686 )
8787 setClientErrorHandler ( httpServer , config . logger )
8888
Original file line number Diff line number Diff line change @@ -295,10 +295,7 @@ export async function createServer(
295295) : Promise < ViteDevServer > {
296296 const config = await resolveConfig ( inlineConfig , 'serve' , 'development' )
297297 const { root, server : serverConfig } = config
298- const httpsOptions = await resolveHttpsConfig (
299- config . server . https ,
300- config . cacheDir
301- )
298+ const httpsOptions = await resolveHttpsConfig ( config . server . https )
302299 const { middlewareMode } = serverConfig
303300
304301 const resolvedWatchOptions = resolveChokidarOptions ( {
You can’t perform that action at this time.
0 commit comments