build cont ....

This commit is contained in:
artrejo
2022-01-20 18:07:42 -08:00
parent 0ffebc14ca
commit 0fc5f070cc
3 changed files with 7401 additions and 7887 deletions

View File

@@ -339,7 +339,10 @@ export function createMongoCollectionWithProxy(
export function getFeatureEndpointOrDefault(feature: string): string {
const endpoint =
hasFlag(userContext.features.mongoProxyAPIs, feature) &&
validateEndpoint(userContext.features.mongoProxyEndpoint, allowedMongoProxyEndpoints)
validateEndpoint(
userContext.features.mongoProxyEndpoint,
allowedMongoProxyEndpoints.map((endpoint) => endpoint)
)
? userContext.features.mongoProxyEndpoint
: configContext.MONGO_BACKEND_ENDPOINT || configContext.BACKEND_ENDPOINT;