From ae09c333370a53cec6876ed71f2b2b9bc65a0078 Mon Sep 17 00:00:00 2001 From: Exitium <146968249+Exitium-DEV@users.noreply.github.com> Date: Mon, 8 Apr 2024 14:26:28 +0100 Subject: [PATCH] Refactor: Edit build command to match angular.json The current advised build command does not export the correct environment, resulting in a developer environment being exported, even at production-level. This causes an issue when we start accessing the web server from a hostname that is not localhost, where the websocket cannot establish a connection to 127.0.0.1 instead of window.location.host --- desktop/angular/src/environments/environment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/angular/src/environments/environment.ts b/desktop/angular/src/environments/environment.ts index 5ef6df25..f3cd6ad6 100644 --- a/desktop/angular/src/environments/environment.ts +++ b/desktop/angular/src/environments/environment.ts @@ -1,5 +1,5 @@ // This file can be replaced during build by using the `fileReplacements` array. -// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// `ng build --configuration=production` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = {