diff --git a/.env.example b/.env.example index d65dc10..8ccf33a 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file +DEV_PORT = 80 +USE_HTTPS = false diff --git a/quasar.config.js b/quasar.config.js index 7ed2404..037f3c9 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -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,