Enable new backend for Settings API in Prod. (#1791)
This commit is contained in:
parent
c12eced120
commit
7b81767ded
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue