-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config for account microservice and backend
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// This config defines the production variables which are on the left side of the OR operator | ||
// The development variables are on the right side of the OR operator | ||
// ?? is the nullish coalescing operator | ||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing | ||
// IMPORTANT: These variables are only scoped for the account microservice | ||
|
||
export let config = { | ||
mongodb: { | ||
username: process.env.USR ?? "username", | ||
password: process.env.PSW ?? "password", | ||
clustername: process.env.CLUS ?? "cluster", | ||
database: process.env.DB ?? "test" | ||
} | ||
}; |