Skip to content

Commit

Permalink
feat: accept 1,true for env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Apr 29, 2024
1 parent f695725 commit 7bd3d27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions yarn-project/aztec-node/src/aztec-node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/prover-client/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
}

0 comments on commit 7bd3d27

Please sign in to comment.