feat: 开启HTTPS

This commit is contained in:
Composure
2023-03-04 23:47:16 +08:00
parent c2bab8a856
commit adc8753263
5 changed files with 289 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
// 服务端渲染
server: {
// 是否开启 https
https: false,
https: true,
// 端口号
port: VITE_PORT,
host: "0.0.0.0",