Skip to content

Commit

Permalink
Add DEFER_ENDPOINT environment variable support
Browse files Browse the repository at this point in the history
  • Loading branch information
gearnode committed Mar 18, 2023
1 parent 67920f2 commit 354b2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const __database = new Map<
{ id: string; state: ExecutionState; result?: any }
>();
let __accessToken: string | undefined = process.env["DEFER_TOKEN"];
let __endpoint = "https://api.defer.run";
let __endpoint = process.env["DEFER_ENDPOINT"] || "https://api.defer.run";
let __verbose = false;
let __httpClient: HTTPClient | undefined;
if (__accessToken) __httpClient = makeHTTPClient(__endpoint, __accessToken);
Expand Down

0 comments on commit 354b2e5

Please sign in to comment.