Merge pull request 'fix(decision): gate env OPT_DECISION_ER_SHADOW (Coolify avvisar sifferledande nycklar)' (#110) from fix/decision-gate-env-name into main
masterplan-lock / check (push) Successful in 20s
Security Scan (SIAX Cloud) / security (push) Successful in 24s
Release chain (G17, ADR-W16-003) / Build, push, G17 (SBOM/scan/attest/verify/evidence) (push) Failing after 1m13s
CI (SIAX Cloud) / security (push) Successful in 6m5s
CI (SIAX Cloud) / quality (push) Failing after 6m54s
CI (SIAX Cloud) / integration (push) Successful in 8m3s
Deploy to Coolify / deploy (push) Failing after 10m3s
masterplan-lock / check (push) Successful in 20s
Security Scan (SIAX Cloud) / security (push) Successful in 24s
Release chain (G17, ADR-W16-003) / Build, push, G17 (SBOM/scan/attest/verify/evidence) (push) Failing after 1m13s
CI (SIAX Cloud) / security (push) Successful in 6m5s
CI (SIAX Cloud) / quality (push) Failing after 6m54s
CI (SIAX Cloud) / integration (push) Successful in 8m3s
Deploy to Coolify / deploy (push) Failing after 10m3s
This commit was merged in pull request #110.
This commit is contained in:
@@ -80,9 +80,12 @@ export interface ErShadowResult {
|
||||
latencyMs?: number;
|
||||
}
|
||||
|
||||
/** Shadow-gate: 0PT_DECISION_ER_SHADOW=1 (OFF by default — fire-and-forget). */
|
||||
/** Shadow-gate: OPT_DECISION_ER_SHADOW=1 (OFF by default — fire-and-forget).
|
||||
* Coolify avvisar env-nycklar som borjar med siffra ("0PT_..."), sa gaten
|
||||
* heter OPT_DECISION_ER_SHADOW; det gamla 0PT_-namnet accepteras for
|
||||
* bakatkompatibilitet (t.ex. systemd/docker-miljor utan Coolify). */
|
||||
export function erAutoMatchShadowEnabled(): boolean {
|
||||
return process.env["0PT_DECISION_ER_SHADOW"] === "1";
|
||||
return process.env.OPT_DECISION_ER_SHADOW === "1" || process.env["0PT_DECISION_ER_SHADOW"] === "1";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user