extracted frontend port

This commit is contained in:
Jona Kläß
2024-05-01 20:26:18 +02:00
parent 39c9b1b83f
commit 91f8ef9d3a

View File

@@ -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
} }
}, },