fix(multiRegion): do not look for a multi region config, if there should be none (#3825)
This commit is contained in:
@@ -60,6 +60,7 @@ export const getAvailableRegionConfig: GetAvailableRegionConfig = async () => {
|
||||
}
|
||||
|
||||
export const getDefaultProjectRegionKey = async (): Promise<string | null> => {
|
||||
if (!isMultiRegionEnabled()) return null
|
||||
const defaultRegionKey = (await getMultiRegionConfig()).defaultProjectRegionKey
|
||||
return defaultRegionKey ?? null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user