chore(dev): add https option (#5622)

This commit is contained in:
三咲智子 2022-01-25 16:57:25 +08:00 committed by GitHub
parent 7032e75721
commit ab018ea46e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ export default async () => {
return defineConfig({
server: {
host: true,
https: true,
https: !!process.env.HTTPS,
fs: {
allow: [projRoot],
},

View File

@ -34,7 +34,7 @@ export default defineConfig(async () => {
},
server: {
host: true,
https: true,
https: !!process.env.HTTPS,
},
plugins: [
vue(),