Skip to content

Commit 6eb374a

Browse files
authored
chore: remove cacheDir param (#10188)
1 parent 7229251 commit 6eb374a

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/vite/src/node/http.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ export async function resolveHttpServer(
121121
}
122122

123123
export 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

packages/vite/src/node/preview.ts

+1-1
Original file line numberDiff line numberDiff 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

packages/vite/src/node/server/index.ts

+1-4
Original file line numberDiff line numberDiff 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({

0 commit comments

Comments
 (0)