File tree 3 files changed +3
-7
lines changed
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(
121
121
}
122
122
123
123
export async function resolveHttpsConfig (
124
- https : boolean | HttpsServerOptions | undefined ,
125
- cacheDir : string
124
+ https : boolean | HttpsServerOptions | undefined
126
125
) : Promise < HttpsServerOptions | undefined > {
127
126
if ( ! https ) return undefined
128
127
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export async function preview(
82
82
const httpServer = await resolveHttpServer (
83
83
config . preview ,
84
84
app ,
85
- await resolveHttpsConfig ( config . preview ?. https , config . cacheDir )
85
+ await resolveHttpsConfig ( config . preview ?. https )
86
86
)
87
87
setClientErrorHandler ( httpServer , config . logger )
88
88
Original file line number Diff line number Diff line change @@ -295,10 +295,7 @@ export async function createServer(
295
295
) : Promise < ViteDevServer > {
296
296
const config = await resolveConfig ( inlineConfig , 'serve' , 'development' )
297
297
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 )
302
299
const { middlewareMode } = serverConfig
303
300
304
301
const resolvedWatchOptions = resolveChokidarOptions ( {
You can’t perform that action at this time.
0 commit comments