Skip to content

Commit

Permalink
config for account microservice and backend
Browse files Browse the repository at this point in the history
  • Loading branch information
pogi7 committed Oct 23, 2023
1 parent feaf33c commit c37408e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/account/config.ts
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"
}
};

0 comments on commit c37408e

Please sign in to comment.