diff --git a/packages/apps-config/src/variables/config.ts b/packages/apps-config/src/variables/config.ts index 271f0fa1464d..c9fbe0ca1b3f 100644 --- a/packages/apps-config/src/variables/config.ts +++ b/packages/apps-config/src/variables/config.ts @@ -3,7 +3,7 @@ // eslint-disable-next-line const config: { [network: string]: { url: `wss://${string}`, lcUrl: string } } = { mainnet: { - lcUrl: process.env.MAINNET_LC || 'https://api.lightclient.mainnet.avail.tools/v1', + lcUrl: process.env.MAINNET_LC || 'https://api.lightclient.mainnet.avail.so/v1', url: process.env.MAINNET_URL as `wss://${string}` || 'wss://mainnet-rpc.avail.so/ws' }, turing: { @@ -16,7 +16,7 @@ export const getLCFromUrl = (apiUrl: string) => { if (apiUrl.includes('turing')) { return config.turing.lcUrl; } else { - return config.turing.lcUrl; + return config.mainnet.lcUrl; } }; diff --git a/packages/apps/src/initSettings.ts b/packages/apps/src/initSettings.ts index 18b9f3c4f8bc..d7749397499c 100644 --- a/packages/apps/src/initSettings.ts +++ b/packages/apps/src/initSettings.ts @@ -79,7 +79,7 @@ function getLightClientUrl (apiUrl: string): string { } const stored = window.localStorage.getItem('lcUrl'); - const fallUrl = getLCFromUrl(apiUrl) + '/v1'; + const fallUrl = getLCFromUrl(apiUrl); console.log('LC fallback=', fallUrl); const fallbackUrl = fallUrl;