Skip to content

Commit

Permalink
fix: check for updates on the right channel (#806)
Browse files Browse the repository at this point in the history
This makes the update checker run on the channel that the version being used runs on.
  • Loading branch information
threepointone committed Apr 15, 2022
1 parent 9a3dffa commit b24aeb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/khaki-mice-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

fix: check for updates on the right channel

This makes the update checker run on the channel that the version being used runs on.
2 changes: 1 addition & 1 deletion packages/wrangler/src/update-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function updateCheck(): Promise<string> {
try {
// default cache for update check is 1 day
update = await checkForUpdate(pkg, {
distTag: "beta",
distTag: pkg.version.startsWith("0.0.0") ? "alpha" : "beta", // TODO: change this after https://github.com/cloudflare/wrangler2/pull/805 lands
});
} catch (err) {
// ignore error
Expand Down

0 comments on commit b24aeb5

Please sign in to comment.