fix(stage-web): failed to launch when localhost.crt and localhost.pem is missing. (#262)

---------

Signed-off-by: 秋雨落 <i@rain.cx>
This commit is contained in:
雨落
2025-07-07 23:00:38 +08:00
committed by GitHub
parent 2388d48471
commit 61ef007cc5
-5
View File
@@ -1,4 +1,3 @@
import { readFileSync } from 'node:fs'
import { join, resolve } from 'node:path'
import { env } from 'node:process'
@@ -65,10 +64,6 @@ export default defineConfig({
},
server: {
https: {
key: readFileSync(resolve(join(import.meta.dirname, '..', '..', 'localhost.pem'))),
cert: readFileSync(resolve(join(import.meta.dirname, '..', '..', 'localhost.crt'))),
},
},
plugins: [