diff --git a/src/context/useGetDomainMetadata.ts b/src/context/useGetDomainMetadata.ts index d13ae10..86e3b77 100644 --- a/src/context/useGetDomainMetadata.ts +++ b/src/context/useGetDomainMetadata.ts @@ -3,7 +3,7 @@ import { Actions, EnvironmentMetadata, ResourceMetadata } from "../types" export function useGetSharedConfig(explorerContextDispatcher: React.Dispatch): void { const getSharedConfig = async (): Promise => { - const reponse = await fetch(`${import.meta.env.VITE_SHARED_CONFIG_URL as string}/api/domains/metadata`) + const reponse = await fetch(`${import.meta.env.VITE_INDEXER_URL as string}/api/domains/metadata`) const domainsData = (await reponse.json()) as EnvironmentMetadata explorerContextDispatcher({ @@ -21,7 +21,7 @@ export function useGetResorceInfoPerDomain(explorerContextDispatcher: React.Disp const getResourceDomainMetadata = async (): Promise => { const resourcesPerPage = [] for (const domainId of sourceDomainIds) { - const resourceInfo = await fetch(`${import.meta.env.VITE_SHARED_CONFIG_URL as string}/api/domains/${domainId}/resources`) + const resourceInfo = await fetch(`${import.meta.env.VITE_INDEXER_URL as string}/api/domains/${domainId}/resources`) const resourceData = (await resourceInfo.json()) as ResourceMetadata[] resourcesPerPage.push(...resourceData) }