We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e1093 commit 80ae674Copy full SHA for 80ae674
report/src/services/dataService.ts
@@ -43,13 +43,15 @@ export function getDataSourceConfig(): DataServiceConfig {
43
const getEnvVar = (key: string): string | undefined => {
44
// Client-side: check for runtime configuration first
45
if (typeof window !== "undefined") {
46
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
47
const runtimeConfig = (window as any).__RUNTIME_CONFIG__;
48
if (runtimeConfig?.[key]) {
49
return runtimeConfig[key];
50
}
51
52
53
// Fallback to Vite environment variable
54
55
const viteEnv = (import.meta as any).env;
56
return viteEnv[`VITE_${key}`];
57
};
0 commit comments