diff options
Diffstat (limited to 'server/helpers/core-utils.ts')
-rw-r--r-- | server/helpers/core-utils.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index 6ebe8e2ac..4bbf0228d 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -165,6 +165,14 @@ function isTestInstance () { | |||
165 | return process.env.NODE_ENV === 'test' | 165 | return process.env.NODE_ENV === 'test' |
166 | } | 166 | } |
167 | 167 | ||
168 | function isDevInstance () { | ||
169 | return process.env.NODE_ENV === 'dev' | ||
170 | } | ||
171 | |||
172 | function isTestOrDevInstance () { | ||
173 | return isTestInstance() || isDevInstance() | ||
174 | } | ||
175 | |||
168 | function isProdInstance () { | 176 | function isProdInstance () { |
169 | return process.env.NODE_ENV === 'production' | 177 | return process.env.NODE_ENV === 'production' |
170 | } | 178 | } |
@@ -270,6 +278,7 @@ const pipelinePromise = promisify(pipeline) | |||
270 | 278 | ||
271 | export { | 279 | export { |
272 | isTestInstance, | 280 | isTestInstance, |
281 | isTestOrDevInstance, | ||
273 | isProdInstance, | 282 | isProdInstance, |
274 | getAppNumber, | 283 | getAppNumber, |
275 | 284 | ||