From c64449cda1f006d8958a991fc99005c50db88c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Mon, 30 Dec 2024 12:55:43 +0100 Subject: [PATCH] test environment against prod --- src/main/angular/src/environments/environment.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/angular/src/environments/environment.ts b/src/main/angular/src/environments/environment.ts index 8b27d93..5e57e5d 100644 --- a/src/main/angular/src/environments/environment.ts +++ b/src/main/angular/src/environments/environment.ts @@ -1,8 +1,10 @@ +const PROD = true; + export const environment = { production: false, - host: window.location.host.split(":")[0], - port: 8080, - base: '', - secure: window.location.protocol === "https:", + host: PROD ? 'app.ph87.de' : window.location.host.split(":")[0], + port: PROD ? 443 : 8080, + base: 'Data/', + secure: PROD ? true : window.location.protocol === "https:", };