parent
8c695b9b67
commit
eb15bc5e80
3 changed files with 21 additions and 5 deletions
|
@ -32,6 +32,7 @@ let baseSettings: UserConfig = {
|
|||
|
||||
if (env.VITE_SSL_CERT && env.VITE_SSL_KEY) {
|
||||
baseSettings['server'] = {
|
||||
hmr: false,
|
||||
https: {
|
||||
key: fs.readFileSync(path.resolve(env.VITE_SSL_KEY)),
|
||||
cert: fs.readFileSync(path.resolve(env.VITE_SSL_CERT))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue