mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 08:43:57 +00:00
refactor: move rpc game executables url to a env
This commit is contained in:
@@ -33,7 +33,7 @@ let currentTick = 1;
|
||||
|
||||
const gameExecutables = (
|
||||
await axios
|
||||
.get("https://assets.hydralauncher.gg/game-executables.json")
|
||||
.get(import.meta.env.MAIN_VITE_RPC_GAME_EXECUTABLES_URL)
|
||||
.catch(() => {
|
||||
return { data: {} };
|
||||
})
|
||||
|
||||
1
src/main/vite-env.d.ts
vendored
1
src/main/vite-env.d.ts
vendored
@@ -6,6 +6,7 @@ interface ImportMetaEnv {
|
||||
readonly MAIN_VITE_ANALYTICS_API_URL: string;
|
||||
readonly MAIN_VITE_AUTH_URL: string;
|
||||
readonly MAIN_VITE_CHECKOUT_URL: string;
|
||||
readonly MAIN_VITE_RPC_GAME_EXECUTABLES_URL: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
||||
Reference in New Issue
Block a user