Skip to content

High performance self-hosted photo and video management solution.

docs: fix archive script labels and change to variable to nextVersion (#10119)

Zack Pollard3c15dae34149
diff --git a/docs/static/archived-versions.json b/docs/static/archived-versions.json
index d0dea6d740..2524268bda 100644
--- a/docs/static/archived-versions.json
+++ b/docs/static/archived-versions.json
@@ -1,6 +1,6 @@
[
{
- "label": "1.106.1",
+ "label": "v1.106.1",
"url": "https://v1.106.1.archive.immich.app"
},
{
diff --git a/misc/release/archive-version.js b/misc/release/archive-version.js
index eb77f273e0..3ef4f58b1e 100755
--- a/misc/release/archive-version.js
+++ b/misc/release/archive-version.js
@@ -1,8 +1,8 @@
#! /usr/bin/env node
const { readFileSync, writeFileSync } = require('node:fs');
-const lastVersion = process.argv[2];
-if (!lastVersion) {
+const nextVersion = process.argv[2];
+if (!nextVersion) {
console.log('Usage: archive-version.js <version>');
process.exit(1);
}
@@ -10,7 +10,7 @@ if (!lastVersion) {
const filename = './docs/static/archived-versions.json';
const oldVersions = JSON.parse(readFileSync(filename));
const newVersions = [
- { label: lastVersion, url: `https://v${lastVersion}.archive.immich.app` },
+ { label: `v${nextVersion}`, url: `https://v${nextVersion}.archive.immich.app` },
...oldVersions,
];