File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ const AppInitializer = ({ children }: { children: ReactNode }) => {
43
43
// Effect to set credentials from environment variables
44
44
useEffect ( ( ) => {
45
45
// Check if credentials are set from environment variables
46
- const envUrl = window . env ?. VITE_CLICKHOUSE_URL ;
47
- const envUser = window . env ?. VITE_CLICKHOUSE_USER ;
48
- const envPass = window . env ?. VITE_CLICKHOUSE_PASS ;
46
+ const envUrl = import . meta . env ?. VITE_CLICKHOUSE_URL || window . env ?. VITE_CLICKHOUSE_URL ;
47
+ const envUser = import . meta . env ?. VITE_CLICKHOUSE_USER || window . env ?. VITE_CLICKHOUSE_USER ;
48
+ const envPass = import . meta . env ?. VITE_CLICKHOUSE_PASS || window . env ?. VITE_CLICKHOUSE_PASS ;
49
49
const envUseAdvanced = window . env ?. VITE_CLICKHOUSE_USE_ADVANCED ;
50
50
const envCustomPath = window . env ?. VITE_CLICKHOUSE_CUSTOM_PATH ;
51
51
You can’t perform that action at this time.
0 commit comments