fix(multiRegion): do not look for a multi region config, if there should be none (#3825)

This commit is contained in:
Gergő Jedlicska
2025-01-15 11:26:36 +01:00
committed by GitHub
parent dfed4ae5c1
commit 04c577529b
@@ -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
}