feat: update plugin index and base URLs to support environment variables

This commit is contained in:
2026-04-23 05:11:11 +10:00
parent 114435a56d
commit 854f365715

View File

@@ -56,8 +56,10 @@ import {
} from '@paarrot/plugin-manager';
const PLUGIN_INDEX_URL =
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 {