Skip to content

Commit

Permalink
worker: fix env var
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Oct 28, 2024
1 parent 2232261 commit d3b39b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ws-worker/src/util/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function parseArgs(argv: string[]): Args {
WORKER_SECRET,
WORKER_STATE_PROPS_TO_REMOVE,
WORKER_SOCKET_TIMEOUT_SECONDS,
OPENFN_REPO_DIR,
OPENFN_ADAPTORS_REPO,
} = process.env;

const parser = yargs(hideBin(argv))
Expand All @@ -88,7 +88,7 @@ export default function parseArgs(argv: string[]): Args {
.option('monorepo-dir', {
alias: 'm',
description:
'Path to the adaptors mono repo, from where @local adaptors will be loaded. Env: OPENFN_REPO_DIR',
'Path to the adaptors mono repo, from where @local adaptors will be loaded. Env: OPENFN_ADAPTORS_REPO',
})
.option('secret', {
alias: 's',
Expand Down Expand Up @@ -162,7 +162,7 @@ export default function parseArgs(argv: string[]): Args {
'ws://localhost:4000/worker'
),
repoDir: setArg(args.repoDir, WORKER_REPO_DIR),
monorepoDir: setArg(args.monorepoDir, OPENFN_REPO_DIR),
monorepoDir: setArg(args.monorepoDir, OPENFN_ADAPTORS_REPO),
secret: setArg(args.secret, WORKER_SECRET),
lightningPublicKey: setArg(
args.lightningPublicKey,
Expand Down

0 comments on commit d3b39b6

Please sign in to comment.