diff --git a/desci-server/src/services/repoService.ts b/desci-server/src/services/repoService.ts index 84e1fb41..973985fd 100644 --- a/desci-server/src/services/repoService.ts +++ b/desci-server/src/services/repoService.ts @@ -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 = { ok: boolean } & B;