Initial commit with Email Import Wizard and Task Processor updates
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Gibt eine Umgebungsvariable zurück.
|
||||
* Priorisierung: window.__ENV__ (Docker Runtime) > import.meta.env (Vite Build-Time)
|
||||
*/
|
||||
export function getEnv(key: string): string {
|
||||
const runtimeEnv = (window as any).__ENV__;
|
||||
if (runtimeEnv?.[key]) return runtimeEnv[key];
|
||||
return (import.meta.env as any)[key] ?? '';
|
||||
}
|
||||
Reference in New Issue
Block a user