delete environment.prod.ts;

use environment.ts for location + port;
This commit is contained in:
Marco Zeisler
2021-05-04 19:36:25 +02:00
parent 42edbdd195
commit 065922b279
6 changed files with 38 additions and 60 deletions
@@ -1,10 +0,0 @@
import {NgxLoggerLevel} from 'ngx-logger';
export const environment = {
title: 'Bsp 4 Gruppe 4',
production: true,
location: window.location.hostname,
port: 8000,
ws_url_root: 'ws://' + window.location.hostname + ':' + window.location.port + '/',
log_level: NgxLoggerLevel.WARN,
};
+3 -18
View File
@@ -1,25 +1,10 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
import {NgxLoggerLevel} from 'ngx-logger';
export const environment = {
title: 'Bsp 4 Gruppe 4',
openid_endpoint: 'https://waecm-sso.inso.tuwien.ac.at/auth/realms/waecm/protocol/openid-connect',
production: false,
location: 'http://localhost:4200',
production: true,
location: window.location.hostname,
port: 8000,
ws_location: 'ws://127.0.0.1',
ws_port: 8000,
log_level: NgxLoggerLevel.DEBUG,
log_level: NgxLoggerLevel.WARN,
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.