mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: move rpc game executables url to a env
This commit is contained in:
parent
f2714bd0ab
commit
347e38c413
4 changed files with 6 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue