Skip to content

Commit

Permalink
Merge pull request #726 from desci-labs/env-issue
Browse files Browse the repository at this point in the history
make env flexible
  • Loading branch information
shadrach-tayo authored Dec 17, 2024
2 parents 1507cad + 4446416 commit ed73c4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desci-server/src/services/repoService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { NodeUuid } from './manifestRepo.js';

const logger = parentLogger.child({ module: 'Repo Service' });

const cloudflareWorkerApi = 'https://nodes-dev-sync.desci.com'; // process.env.CLOUDFLARE_WORKER_API;
const cloudflareWorkerApiSecret = 'auth-token'; // process.env.CLOUDFLARE_WORKER_API_SECRET;
const cloudflareWorkerApi = process.env.CLOUDFLARE_WORKER_API || 'https://nodes-dev-sync.desci.com';
const cloudflareWorkerApiSecret = process.env.CLOUDFLARE_WORKER_API_SECRET || 'auth-token';
const enableWorkersApi = true; // process.env.ENABLE_WORKERS_API == 'true';

type ApiResponse<B> = { ok: boolean } & B;
Expand Down

0 comments on commit ed73c4a

Please sign in to comment.