Skip to content

Commit

Permalink
Make default DEPLOY_API_ENDPOINTs include /api
Browse files Browse the repository at this point in the history
  • Loading branch information
willnewby committed Jul 19, 2023
1 parent 71071f7 commit 8135181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "./deps.js";

// The origin of the server to make Deploy requests to.
const ORIGIN = process.env.DEPLOY_API_ENDPOINT ?? "https://dash.deno.com";
const ORIGIN = process.env.DEPLOY_API_ENDPOINT ?? "https://dash.deno.com/api";

async function main() {
const projectId = core.getInput("project", { required: true });
Expand Down
2 changes: 1 addition & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class API {

static fromToken(token: string) {
const endpoint = Deno.env.get("DEPLOY_API_ENDPOINT") ??
"https://dash.deno.com";
"https://dash.deno.com/api";
return new API(`Bearer ${token}`, endpoint);
}

Expand Down

0 comments on commit 8135181

Please sign in to comment.