Skip to content

Commit

Permalink
Merge pull request #4 from depot/dl-api
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Sep 21, 2022
2 parents 69535db + e5d293a commit 777406d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5472,7 +5472,7 @@ async function run() {
}
}
async function resolveVersion(version) {
const res = await client.get(`https://depot.dev/api/cli/release/${process.platform}/${process.arch}/${version}`);
const res = await client.get(`https://dl.depot.dev/cli/release/${process.platform}/${process.arch}/${version}`);
const body = await res.readBody();
const response = JSON.parse(body);
if (!response.ok)
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function run() {
}

async function resolveVersion(version: string) {
const res = await client.get(`https://depot.dev/api/cli/release/${process.platform}/${process.arch}/${version}`)
const res = await client.get(`https://dl.depot.dev/cli/release/${process.platform}/${process.arch}/${version}`)
const body = await res.readBody()
const response: ApiResponse = JSON.parse(body)

Expand Down

0 comments on commit 777406d

Please sign in to comment.