Skip to content

Commit 832e090

Browse files
fix(overmind): default to development environment
1 parent 7664689 commit 832e090

File tree

1 file changed

+2
-1
lines changed
  • packages/node_modules/overmind/src

1 file changed

+2
-1
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export interface OnInitialize extends IOnInitialize<Config> {}
4949
const IS_NODE =
5050
typeof module !== 'undefined' && (!this || this.module !== module)
5151
const IS_PRODUCTION = process.env.NODE_ENV === 'production'
52-
const IS_DEVELOPMENT = process.env.NODE_ENV === 'development'
52+
const IS_DEVELOPMENT =
53+
!process.env.NODE_ENV || process.env.NODE_ENV === 'development'
5354
const IS_OPERATOR = Symbol('operator')
5455

5556
export const makeStringifySafeMutations = (mutations: IMutation[]) => {

0 commit comments

Comments
 (0)