Skip to content

Commit

Permalink
fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjofrank committed May 29, 2024
1 parent b6446fb commit a9f5322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/deno-api/DenoSubhostingClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export class DenoSubhostingClient {

constructor() {
this.API = "https://api.deno.com/v1";
this.accessToken = env["DEPLOY_ACCESS_TOKEN"];
this.orgId = env["DEPLOY_ORG_ID"];
this.accessToken = env["DEPLOY_ACCESS_TOKEN"] || Deno.env.get("DEPLOY_ACCESS_TOKEN");
this.orgId = env["DEPLOY_ORG_ID"] || Deno.env.get("DEPLOY_ORG_ID");

if (!this.accessToken) {
throw new Error("env DEPLOY_ACCESS_TOKEN is required");
Expand Down

0 comments on commit a9f5322

Please sign in to comment.