From 854f3657151cc3e9c458b62210cda497b290c1ff Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Thu, 23 Apr 2026 05:11:11 +1000 Subject: [PATCH] feat: update plugin index and base URLs to support environment variables --- src/app/features/settings/plugins/PluginAPI.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/features/settings/plugins/PluginAPI.ts b/src/app/features/settings/plugins/PluginAPI.ts index b605418..cd571bd 100644 --- a/src/app/features/settings/plugins/PluginAPI.ts +++ b/src/app/features/settings/plugins/PluginAPI.ts @@ -56,8 +56,10 @@ import { } from '@paarrot/plugin-manager'; const PLUGIN_INDEX_URL = - `https://raw.githubusercontent.com/Paarrot/Plugin-Directory/refs/heads/main/plugins/index.json?cache_burst=${ (Math.random()*256).toString()}`; + import.meta.env.VITE_PLUGIN_INDEX_URL || + `https://raw.githubusercontent.com/Paarrot/Plugin-Directory/refs/heads/main/plugins/index.json?cache_burst=${(Math.random()*256).toString()}`; const PLUGIN_BASE_URL = + import.meta.env.VITE_PLUGIN_BASE_URL || 'https://raw.githubusercontent.com/Paarrot/Plugin-Directory/refs/heads/main/plugins/'; function injectThemeStyle(styleId: string, css: string): void {