cosmos-explorer/src/Utils/CloudUtils.ts
sunghyunkang1111 a914fd020c
Partition Key Change with Container Copy (#1734)
* initial commit

* Add change partition key logic

* Update snapshot

* Update snapshot

* Update snapshot

* Update snapshot

* Cleanup code

* Disable Change on progress job

* add the database information in the panel

* add the database information in the panel

* clear in progress message and remove large partition key row

* hide from national cloud

* hide from national cloud

* Add check for public cloud
2024-02-13 14:00:27 -06:00

10 lines
276 B
TypeScript

import { userContext } from "../UserContext";
export function isRunningOnNationalCloud(): boolean {
return !isRunningOnPublicCloud();
}
export function isRunningOnPublicCloud(): boolean {
return userContext?.portalEnv === "prod1" || userContext?.portalEnv === "prod";
}