1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 07:11:44 +00:00

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-10 20:03:12 -04:00
committed by GitHub
parent 467d9c7bf1
commit bede56598c
4 changed files with 6 additions and 11 deletions

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}"

View File

@@ -0,0 +1 @@
configuration=production