From 87359b82c76fa0021808392ade7cc17e44b6c3e0 Mon Sep 17 00:00:00 2001 From: Jiadong Bai <43344272+bobbai00@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:22:39 -0700 Subject: [PATCH] Update the `ng build` command in deploy-daemon.sh This PR updates the `ng build` command in `deploy-daemon.sh`. Before the change, the command is: `ng build --prod --deploy-url=/ --base-href=/` However, `--prod` is deprecated according to https://github.com/angular/angular-cli/blob/main/CHANGELOG.md#breaking-changes-2 So I updated it to make it align with current angular: `ng build --configuration production --deploy-url=/ --base-href=/` --- core/scripts/deploy-daemon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/deploy-daemon.sh b/core/scripts/deploy-daemon.sh index 9efd93435cb..a125427ce8f 100755 --- a/core/scripts/deploy-daemon.sh +++ b/core/scripts/deploy-daemon.sh @@ -22,7 +22,7 @@ then echo echo "${green}Compiling GUI...${reset}" - cd ../gui && yarn install && ng build --prod --deploy-url=/ --base-href=/ + cd ../gui && yarn install && ng build --configuration production --deploy-url=/ --base-href=/ echo "${green}GUI compiled.${reset}" echo cd ..