fix: skip Tauri updater in Electron, add debug logging for routing
This commit is contained in:
@@ -5,8 +5,11 @@ import { trimTrailingSlash } from '../utils/common';
|
||||
|
||||
const getClientConfig = async (): Promise<ClientConfig> => {
|
||||
const url = `${trimTrailingSlash(import.meta.env.BASE_URL)}/config.json`;
|
||||
console.log('[Config] Loading config from:', url);
|
||||
const config = await fetch(url, { method: 'GET' });
|
||||
return config.json();
|
||||
const json = await config.json();
|
||||
console.log('[Config] Loaded config:', json);
|
||||
return json;
|
||||
};
|
||||
|
||||
type ClientConfigLoaderProps = {
|
||||
|
||||
Reference in New Issue
Block a user