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 {