﻿# config({ cwd: … })

> Choose the base directory for relative paths

[Node.js config](/docs/sdk/nodejs/config/)

```javascript
dotenvx.config({ cwd: '/srv/app', path: '.env.production' })
```

## Usage

Defaults to process.cwd(). Relative file and key paths are resolved by the shared loader from this directory.

```javascript
const dotenvx = require('@dotenvx/dotenvx')
dotenvx.config({ cwd: '/srv/app', path: '.env.production' })
```
