Skip to content

Commit

Permalink
chore: remove cacheDir param (#10188)
Browse files Browse the repository at this point in the history
  • Loading branch information
PengBoUESTC committed Sep 22, 2022
1 parent 7229251 commit 6eb374a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ export async function resolveHttpServer(
}

export async function resolveHttpsConfig(
https: boolean | HttpsServerOptions | undefined,
cacheDir: string
https: boolean | HttpsServerOptions | undefined
): Promise<HttpsServerOptions | undefined> {
if (!https) return undefined

Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function preview(
const httpServer = await resolveHttpServer(
config.preview,
app,
await resolveHttpsConfig(config.preview?.https, config.cacheDir)
await resolveHttpsConfig(config.preview?.https)
)
setClientErrorHandler(httpServer, config.logger)

Expand Down
5 changes: 1 addition & 4 deletions packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,7 @@ export async function createServer(
): Promise<ViteDevServer> {
const config = await resolveConfig(inlineConfig, 'serve', 'development')
const { root, server: serverConfig } = config
const httpsOptions = await resolveHttpsConfig(
config.server.https,
config.cacheDir
)
const httpsOptions = await resolveHttpsConfig(config.server.https)
const { middlewareMode } = serverConfig

const resolvedWatchOptions = resolveChokidarOptions({
Expand Down

0 comments on commit 6eb374a

Please sign in to comment.