2020-10-29 09:35:06 +13:00
|
|
|
const env = require("../environment")
|
|
|
|
|
2020-10-20 03:33:26 +13:00
|
|
|
exports.wait = ms => new Promise(resolve => setTimeout(resolve, ms))
|
2020-10-27 06:49:33 +13:00
|
|
|
|
|
|
|
exports.isDev = () => {
|
|
|
|
return (
|
2020-10-29 23:45:02 +13:00
|
|
|
!env.CLOUD &&
|
2020-10-29 09:35:06 +13:00
|
|
|
env.NODE_ENV !== "production" &&
|
|
|
|
env.NODE_ENV !== "jest" &&
|
|
|
|
env.NODE_ENV !== "cypress"
|
2020-10-27 06:49:33 +13:00
|
|
|
)
|
|
|
|
}
|
2020-11-03 04:46:08 +13:00
|
|
|
|
|
|
|
exports.getAppId = ctx => {
|
|
|
|
|
|
|
|
}
|