Fix service urls

This commit is contained in:
Bassem Dghaidi
2024-09-24 03:29:14 -07:00
committed by GitHub
parent 07e51a445e
commit e62c6428e7
5 changed files with 31 additions and 18 deletions
+2 -2
View File
@@ -33,10 +33,10 @@ import {
retryHttpClientResponse,
retryTypedResponse
} from './requestUtils'
import { CacheUrl } from './constants'
import { getCacheServiceURL } from './config'
function getCacheApiUrl(resource: string): string {
const baseUrl: string = CacheUrl || ''
const baseUrl: string = getCacheServiceURL()
if (!baseUrl) {
throw new Error('Cache Service Url not found, unable to restore cache.')
}