We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd75e51 commit 722e050Copy full SHA for 722e050
src/index.ts
@@ -9,9 +9,7 @@ function viteBasicSslPlugin(): Plugin {
9
name: 'vite:basic-ssl',
10
async configResolved(config) {
11
const certificate = await getCertificate((config.cacheDir ?? defaultCacheDir) + '/basic-ssl')
12
- const https = () => ({
13
- https: { cert: certificate, key: certificate }
14
- })
+ const https = () => ({ cert: certificate, key: certificate })
15
config.server.https = Object.assign({}, config.server.https, https())
16
config.preview.https = Object.assign({}, config.preview.https, https())
17
}
@@ -41,5 +39,5 @@ export async function getCertificate(cacheDir: string) {
41
39
return content
42
40
43
44
-
+
45
export default viteBasicSslPlugin
0 commit comments