We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 560768e commit 68fe2caCopy full SHA for 68fe2ca
frontend/src/ts/utils/version.ts
@@ -2,7 +2,7 @@ import { z } from "zod";
2
import { getLatestReleaseFromGitHub } from "./json-data";
3
import { LocalStorageWithSchema } from "./local-storage-with-schema";
4
import { tryCatch } from "@monkeytype/util/trycatch";
5
-import { createErrorMessage } from "./misc";
+import { createErrorMessage, isDevEnvironment } from "./misc";
6
import { setVersion } from "../signals/core";
7
8
const memoryLS = new LocalStorageWithSchema({
@@ -19,6 +19,8 @@ function purgeCaches(): void {
19
}
20
21
export async function fetchLatestVersion(): Promise<void> {
22
+ if (isDevEnvironment()) return;
23
+
24
const { data: currentVersion, error } = await tryCatch(
25
getLatestReleaseFromGitHub(),
26
);
0 commit comments