2021-05-05 18:49:34 +02:00
|
|
|
function isTest() {
|
|
|
|
return (
|
|
|
|
process.env.NODE_ENV === "jest" ||
|
|
|
|
process.env.NODE_ENV === "cypress" ||
|
|
|
|
process.env.JEST_WORKER_ID != null
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-04-14 15:13:48 +02:00
|
|
|
module.exports = {
|
|
|
|
JWT_SECRET: process.env.JWT_SECRET,
|
|
|
|
COUCH_DB_URL: process.env.COUCH_DB_URL,
|
|
|
|
SALT_ROUNDS: process.env.SALT_ROUNDS,
|
2021-04-27 18:29:05 +02:00
|
|
|
REDIS_URL: process.env.REDIS_URL,
|
|
|
|
REDIS_PASSWORD: process.env.REDIS_PASSWORD,
|
2021-05-06 20:27:24 +02:00
|
|
|
MINIO_ACCESS_KEY: process.env.MINIO_ACCESS_KEY,
|
|
|
|
MINIO_SECRET_KEY: process.env.MINIO_SECRET_KEY,
|
|
|
|
MINIO_URL: process.env.MINIO_URL,
|
2021-05-05 18:49:34 +02:00
|
|
|
isTest,
|
2021-04-14 15:13:48 +02:00
|
|
|
}
|