add option for https dev server
This commit is contained in:
@@ -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
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user