Fix console build for GKE (#2713)

We use the $environment property to set the console config. If it is not
given, 'alpha' is used, which has the same effect as 'production'.

TESTED=ran :jetty:copyConsole with
-Penvironment=(sandbox|production|alpha) and checked the resulting js
file.
This commit is contained in:
Lai Jiang
2025-03-11 00:03:12 +00:00
committed by GitHub
parent 467d9c7bf1
commit bede56598c
4 changed files with 6 additions and 11 deletions
+1 -3
View File
@@ -40,9 +40,7 @@ task runConsoleWebappUnitTests(type: Exec) {
task buildConsoleWebapp(type: Exec) {
workingDir "${consoleDir}/"
executable 'npm'
def configuration = project.hasProperty('configuration') ?
project.getProperty('configuration') :
'production'
def configuration = project.getProperty('configuration')
args 'run', "build", "--configuration=${configuration}"
doFirst {
println "Building console for environment: ${configuration}"
+1
View File
@@ -0,0 +1 @@
configuration=production