Skip to content

Commit 777406d

Browse files
Merge pull request #4 from depot/dl-api
2 parents 69535db + e5d293a commit 777406d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5472,7 +5472,7 @@ async function run() {
54725472
}
54735473
}
54745474
async function resolveVersion(version) {
5475-
const res = await client.get(`https://depot.dev/api/cli/release/${process.platform}/${process.arch}/${version}`);
5475+
const res = await client.get(`https://dl.depot.dev/cli/release/${process.platform}/${process.arch}/${version}`);
54765476
const body = await res.readBody();
54775477
const response = JSON.parse(body);
54785478
if (!response.ok)

Diff for: src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function run() {
4545
}
4646

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

0 commit comments

Comments
 (0)