From af4f53ed04a03760d1a14532d51be7c31fba043b Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 11 Oct 2023 20:00:51 -0500 Subject: [PATCH] refactor: use env vars for os releases urls --- web/helpers/urls.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/helpers/urls.ts b/web/helpers/urls.ts index 40d1b2b45..8157dbfbf 100644 --- a/web/helpers/urls.ts +++ b/web/helpers/urls.ts @@ -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);