feat: update plugin index and base URLs to support environment variables
This commit is contained in:
@@ -56,8 +56,10 @@ import {
|
|||||||
} from '@paarrot/plugin-manager';
|
} from '@paarrot/plugin-manager';
|
||||||
|
|
||||||
const PLUGIN_INDEX_URL =
|
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 =
|
const PLUGIN_BASE_URL =
|
||||||
|
import.meta.env.VITE_PLUGIN_BASE_URL ||
|
||||||
'https://raw.githubusercontent.com/Paarrot/Plugin-Directory/refs/heads/main/plugins/';
|
'https://raw.githubusercontent.com/Paarrot/Plugin-Directory/refs/heads/main/plugins/';
|
||||||
|
|
||||||
function injectThemeStyle(styleId: string, css: string): void {
|
function injectThemeStyle(styleId: string, css: string): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user