diff --git a/src/components/AnimatedTerminal.astro b/src/components/AnimatedTerminal.astro index 1483bdaa..8b47e42f 100644 --- a/src/components/AnimatedTerminal.astro +++ b/src/components/AnimatedTerminal.astro @@ -1,10 +1,12 @@ --- /** * This is a styled terminal that animates screens of output for demonstration. - * It’s vanilla JavaScript that uses a chain of recursive `setTimeout()` methods - * to append and reset some `innterHTML`. (Avoid `setInterval()`, which may let + * It's vanilla JavaScript that uses a chain of recursive `setTimeout()` methods + * to append and reset some `innerHTML`. (Avoid `setInterval()`, which may let * things drift out of sync!) */ +import { getLatestReleaseVersion } from "../lib/api" +const latestRelease = await getLatestReleaseVersion() --- -
+
diff --git a/src/lib/api.ts b/src/lib/api.ts index 77c8a1fb..12f130f3 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -215,7 +215,7 @@ export async function getRepoDetails(name: string) { */ export async function getLatestReleaseVersion(stable = true) { if (!githubTokenIsSet) { - return "v1.24.9" // Fallback version for local development without token + return "v1.25.0" // Fallback version for local development without token } let data = await getReleases()