refactor: use env vars for os releases urls

This commit is contained in:
Zack Spear
2023-10-11 20:00:51 -05:00
committed by Zack Spear
parent e021c48daa
commit af4f53ed04
+3 -3
View File
@@ -20,9 +20,9 @@ const WEBGUI_CONNECT_SETTINGS = new URL('#UnraidNetSettings', WEBGUI_SETTINGS_MA
const WEBGUI_TOOLS_REGISTRATION = new URL('/Tools/Registration', WEBGUI);
const WEBGUI_TOOLS_UPDATE = new URL('/Tools/Update', WEBGUI);
const OS_RELEASES = new URL('https://next.dl.unraid.net/releases-combined.json');
const OS_RELEASES_NEXT = new URL('https://next.dl.unraid.net/releases-combined.json');
const OS_RELEASES_PREVIEW = new URL('https://preview.dl.unraid.net/releases-combined.json');
const OS_RELEASES = new URL(import.meta.env.VITE_OS_RELEASES ?? 'https://next.dl.unraid.net/releases-combined.json');
const OS_RELEASES_NEXT = new URL(import.meta.env.VITE_OS_RELEASES_NEXT ?? 'https://next.dl.unraid.net/releases-combined.json');
const OS_RELEASES_PREVIEW = new URL(import.meta.env.VITE_OS_RELEASES_PREVIEW ?? 'https://preview.dl.unraid.net/releases-combined.json');
const DOCS_REGISTRATION_LICENSING = new URL('/unraid-os/faq/licensing-faq', DOCS);
const DOCS_REGISTRATION_REPLACE_KEY = new URL('/unraid-os/manual/changing-the-flash-device', DOCS);