Skip to content

Commit

Permalink
feat(env): print out env
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhxNguyen7 committed Dec 2, 2024
1 parent 88956ae commit b04b33b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/backend/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ const Environment = type({
STAGE: "string",
});

try {
Environment.assert({ ...process.env });
} catch (e) {
console.log("Got env:", process.env);
throw e;
}
const env = Environment.assert({ ...process.env });

export default env;

0 comments on commit b04b33b

Please sign in to comment.