From 7bd3d27db6e8fd0a0078282ac6a548c186d359c4 Mon Sep 17 00:00:00 2001 From: Alex Gherghisan Date: Mon, 29 Apr 2024 13:26:16 +0000 Subject: [PATCH] feat: accept 1,true for env vars --- yarn-project/aztec-node/src/aztec-node/config.ts | 4 ++-- yarn-project/prover-client/src/config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn-project/aztec-node/src/aztec-node/config.ts b/yarn-project/aztec-node/src/aztec-node/config.ts index d4c71c30421..dba7d824025 100644 --- a/yarn-project/aztec-node/src/aztec-node/config.ts +++ b/yarn-project/aztec-node/src/aztec-node/config.ts @@ -26,7 +26,7 @@ export type AztecNodeConfig = ArchiverConfig & * @returns A valid aztec node config. */ export function getConfigEnvVars(): AztecNodeConfig { - const { SEQ_DISABLED, PROVER_DISABLED, ARCHIVER_URL } = process.env; + const { SEQ_DISABLED, PROVER_DISABLED = '', ARCHIVER_URL } = process.env; const allEnvVars: AztecNodeConfig = { ...getSequencerVars(), @@ -36,7 +36,7 @@ export function getConfigEnvVars(): AztecNodeConfig { ...getProverEnvVars(), disableSequencer: !!SEQ_DISABLED, archiverUrl: ARCHIVER_URL, - disableProver: PROVER_DISABLED === '1', + disableProver: ['1', 'true'].includes(PROVER_DISABLED), }; return allEnvVars; diff --git a/yarn-project/prover-client/src/config.ts b/yarn-project/prover-client/src/config.ts index 6d840cac681..0b8f7cce6ea 100644 --- a/yarn-project/prover-client/src/config.ts +++ b/yarn-project/prover-client/src/config.ts @@ -42,6 +42,6 @@ export function getProverEnvVars(): ProverConfig { bbBinaryPath: BB_BINARY_PATH, bbWorkingDirectory: BB_WORKING_DIRECTORY, proverAgents, - realProofs: PROVER_REAL_PROOFS === '1', + realProofs: ['1', 'true'].includes(PROVER_REAL_PROOFS), }; }