Merged in chore/release-pipeline (pull request #3352)
Add scripts for handling deployments Approved-by: Linus Flood
This commit is contained in:
@@ -27,11 +27,17 @@ export function EnvironmentWatermark() {
|
||||
}
|
||||
|
||||
const { environment, name } = getEnvironmentName()
|
||||
const displayValue = name === environment ? name : `${name} (${environment})`
|
||||
const displayValues = [name]
|
||||
if (name !== environment) {
|
||||
displayValues.push(`(${environment})`)
|
||||
}
|
||||
if (env.NEXT_PUBLIC_RELEASE_TAG) {
|
||||
displayValues.push(`[${env.NEXT_PUBLIC_RELEASE_TAG}]`)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={variants({ environment: environment })}>
|
||||
<span>{displayValue}</span>
|
||||
<span>{displayValues.join(" ")}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user