mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: add URL to end of the env main external resources
This commit is contained in:
parent
4c3eb98041
commit
e95407e6f5
4 changed files with 7 additions and 6 deletions
|
@ -34,7 +34,8 @@ let currentTick = 1;
|
|||
const gameExecutables = (
|
||||
await axios
|
||||
.get(
|
||||
import.meta.env.MAIN_VITE_EXTERNAL_RESOURCES + "/game-executables.json"
|
||||
import.meta.env.MAIN_VITE_EXTERNAL_RESOURCES_URL +
|
||||
"/game-executables.json"
|
||||
)
|
||||
.catch(() => {
|
||||
return { data: {} };
|
||||
|
|
2
src/main/vite-env.d.ts
vendored
2
src/main/vite-env.d.ts
vendored
|
@ -6,7 +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_EXTERNAL_RESOURCES: string;
|
||||
readonly MAIN_VITE_EXTERNAL_RESOURCES_URL: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue