mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 17:30:46 +00:00
Enable new backend for Settings API in Prod. (#1791)
This commit is contained in:
@@ -155,7 +155,11 @@ export function useNewPortalBackendEndpoint(backendApi: string): boolean {
|
|||||||
// This maps backend APIs to the environments supported by the new backend.
|
// This maps backend APIs to the environments supported by the new backend.
|
||||||
const newBackendApiEnvironmentMap: { [key: string]: string[] } = {
|
const newBackendApiEnvironmentMap: { [key: string]: string[] } = {
|
||||||
[BackendApi.GenerateToken]: [PortalBackendEndpoints.Development],
|
[BackendApi.GenerateToken]: [PortalBackendEndpoints.Development],
|
||||||
[BackendApi.PortalSettings]: [PortalBackendEndpoints.Development, PortalBackendEndpoints.Mpac],
|
[BackendApi.PortalSettings]: [
|
||||||
|
PortalBackendEndpoints.Development,
|
||||||
|
PortalBackendEndpoints.Mpac,
|
||||||
|
PortalBackendEndpoints.Prod,
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!newBackendApiEnvironmentMap[backendApi] || !configContext.PORTAL_BACKEND_ENDPOINT) {
|
if (!newBackendApiEnvironmentMap[backendApi] || !configContext.PORTAL_BACKEND_ENDPOINT) {
|
||||||
|
|||||||
Reference in New Issue
Block a user