extracted frontend port
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
const { configure } = require('quasar/wrappers');
|
const { configure } = require('quasar/wrappers');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const frontendPort = 8080;
|
||||||
|
|
||||||
module.exports = configure(function (/* ctx */) {
|
module.exports = configure(function (/* ctx */) {
|
||||||
return {
|
return {
|
||||||
@@ -67,7 +68,7 @@ module.exports = configure(function (/* ctx */) {
|
|||||||
|
|
||||||
//Defined in realm_export.json, initialize_keycloak.sh and quasar.config.js
|
//Defined in realm_export.json, initialize_keycloak.sh and quasar.config.js
|
||||||
PORT_KEYCLOAK:8083,
|
PORT_KEYCLOAK:8083,
|
||||||
PORT_FRONTEND:8080,
|
PORT_FRONTEND:frontendPort,
|
||||||
PORT_BACKEND:8081,
|
PORT_BACKEND:8081,
|
||||||
},
|
},
|
||||||
// rawDefine: {}
|
// rawDefine: {}
|
||||||
@@ -106,11 +107,11 @@ module.exports = configure(function (/* ctx */) {
|
|||||||
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
|
||||||
devServer: {
|
devServer: {
|
||||||
// https: true
|
// https: true
|
||||||
port: 8080, // default: 3000; changed to 8080 to match keycloak settings
|
port: frontendPort, // default: 3000; changed to 8080 to match keycloak settings
|
||||||
open: true, // opens browser window automatically
|
open: true, // opens browser window automatically
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:8080',
|
target: 'http://localhost:' + frontendPort,
|
||||||
changeOrigin: true
|
changeOrigin: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user