Skip to content

Commit

Permalink
chore: change url for indexer one
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola committed Sep 13, 2024
1 parent 756dcc2 commit 00fe0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/useGetDomainMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Actions, EnvironmentMetadata, ResourceMetadata } from "../types"

export function useGetSharedConfig(explorerContextDispatcher: React.Dispatch<Actions>): void {
const getSharedConfig = async (): Promise<void> => {
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({
Expand All @@ -21,7 +21,7 @@ export function useGetResorceInfoPerDomain(explorerContextDispatcher: React.Disp
const getResourceDomainMetadata = async (): Promise<void> => {
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)
}
Expand Down

0 comments on commit 00fe0e8

Please sign in to comment.