Download wp-calypso/client/lib/jetpack/is-jetpack-cloud.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/jetpack/is-jetpack-cloud.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/jetpack/is-jetpack-cloud.ts
-
curl -L -o is-jetpack-cloud.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/jetpack/is-jetpack-cloud.ts
325 Bytes
| import config from '@automattic/calypso-config'; | |
| const jetpackCloudEnvironments = [ | |
| 'jetpack-cloud-development', | |
| 'jetpack-cloud-stage', | |
| 'jetpack-cloud-horizon', | |
| 'jetpack-cloud-production', | |
| ]; | |
| const isJetpackCloud = (): boolean => jetpackCloudEnvironments.includes( config( 'env_id' ) ); | |
| export default isJetpackCloud; | |