mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: import correctly vite env
This commit is contained in:
parent
d5a510175f
commit
81e74f068f
2 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,7 @@ export class WindowManager {
|
||||||
});
|
});
|
||||||
|
|
||||||
authWindow.loadURL(
|
authWindow.loadURL(
|
||||||
`${process.env.MAIN_VITE_AUTH_URL}/?${searchParams.toString()}`
|
`${import.meta.env.MAIN_VITE_AUTH_URL}/?${searchParams.toString()}`
|
||||||
);
|
);
|
||||||
|
|
||||||
authWindow.once("ready-to-show", () => {
|
authWindow.once("ready-to-show", () => {
|
||||||
|
|
1
src/main/vite-env.d.ts
vendored
1
src/main/vite-env.d.ts
vendored
|
@ -3,6 +3,7 @@
|
||||||
interface ImportMetaEnv {
|
interface ImportMetaEnv {
|
||||||
readonly MAIN_VITE_STEAMGRIDDB_API_KEY: string;
|
readonly MAIN_VITE_STEAMGRIDDB_API_KEY: string;
|
||||||
readonly MAIN_VITE_API_URL: string;
|
readonly MAIN_VITE_API_URL: string;
|
||||||
|
readonly MAIN_VITE_AUTH_URL: string;
|
||||||
readonly MAIN_VITE_SENTRY_DSN: string;
|
readonly MAIN_VITE_SENTRY_DSN: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue