We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11acd9f + 1102cab commit 04322a6Copy full SHA for 04322a6
README.md
@@ -70,6 +70,14 @@ console.log(process.env) // remove this after you've confirmed it is working
70
import 'dotenv/config'
71
```
72
73
+ES6 import if you need to set config options:
74
+
75
+```javascript
76
+import dotenv from 'dotenv'
77
78
+dotenv.config({ path: '/custom/path/to/.env' })
79
+```
80
81
That's it. `process.env` now has the keys and values you defined in your `.env` file:
82
83
```javascript
0 commit comments