Add AbstractClient to flipper-frontend-core
Summary: AbstractClient provides basic interaction with Flipper Server and manages plugins Reviewed By: mweststrate Differential Revision: D36129750 fbshipit-source-id: 056589666c45821d0af276e3a1572708e0a3b903
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f0b5e7cadb
commit
658cd1544d
14
desktop/flipper-frontend-core/src/utils/isProduction.tsx
Normal file
14
desktop/flipper-frontend-core/src/utils/isProduction.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {getRenderHostInstance} from '../RenderHost';
|
||||
|
||||
export default function isProduction() {
|
||||
return getRenderHostInstance().serverConfig.environmentInfo.isProduction;
|
||||
}
|
||||
Reference in New Issue
Block a user