Skip to content

Commit

Permalink
fix: update isProd utility (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Feb 9, 2022
1 parent 7673731 commit a58315d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export function castArray<T>(input?: T | T[]): T[] {
}

export function isProd() {
return process.env.NODE_ENV !== 'development'
return !['development', 'test'].includes(process.env.NODE_ENV ?? '')
}

0 comments on commit a58315d

Please sign in to comment.