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
This commit is contained in:
Exitium 2024-04-08 14:26:28 +01:00 committed by GitHub
parent 6090518124
commit ae09c33337
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = {