add option for https dev server

This commit is contained in:
wh1te909
2022-05-30 07:46:30 +00:00
parent ba9f93962a
commit 63147ce116
2 changed files with 3 additions and 2 deletions

View File

@@ -2,4 +2,5 @@ PROD_URL = "https://api.example.com"
DEV_URL = "https://api.example.com"
APP_URL = "https://app.example.com"
DEV_HOST = 0.0.0.0
DEV_PORT = 80
DEV_PORT = 80
USE_HTTPS = false

View File

@@ -86,7 +86,7 @@ module.exports = configure(function (/* ctx */) {
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
devServer: {
https: false,
https: process.env.USE_HTTPS === "true",
open: false, // opens browser window automatically
host: process.env.DEV_HOST,
port: process.env.DEV_PORT,