fix: import correctly vite env

This commit is contained in:
Zamitto 2024-09-22 16:25:16 -03:00
parent d5a510175f
commit 81e74f068f
2 changed files with 2 additions and 1 deletions

View file

@ -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", () => {

View file

@ -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;
} }