Skip to content

Commit

Permalink
Log environment
Browse files Browse the repository at this point in the history
  • Loading branch information
FoundTheWOUT committed Mar 9, 2023
1 parent 216aaee commit cd67bd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const VERSION = process.env.Version;

log("cwd:", process.cwd());
log("version:", VERSION);
log("environment:", isProd ? "production" : "other");
// dev load .env.dev, prod load .env
const dotenvPath = resolve(process.cwd(), isProd ? ".env" : ".env.dev");
dotenv.config({ path: dotenvPath });
Expand Down

0 comments on commit cd67bd6

Please sign in to comment.