Skip to content

Commit

Permalink
fix(config): support Windows
Browse files Browse the repository at this point in the history
PWD does not exist in Windows environments.
  • Loading branch information
ValeraGin authored Nov 15, 2021
1 parent 00beb9e commit 04d2d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { registerAs } from '@nestjs/config';
export default registerAs('app', () => ({
nodeEnv: process.env.NODE_ENV,
name: process.env.APP_NAME,
workingDirectory: process.env.PWD,
workingDirectory: process.env.PWD || process.cwd(),
frontendDomain: process.env.FRONTEND_DOMAIN,
backendDomain: process.env.BACKEND_DOMAIN,
port: parseInt(process.env.APP_PORT || process.env.PORT, 10) || 3000,
Expand Down

0 comments on commit 04d2d18

Please sign in to comment.