mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
refactor: use dotenv/config instead of calling the function manually (#4258)
Signed-off-by: Seren_Modz 21 <seren@kings-world.net>
This commit is contained in:
@@ -52,9 +52,7 @@ _or using yarn, pnpm or bun_
|
||||
We now need to load the `.env` from our code so let's add the following code to your typescript file:
|
||||
|
||||
```ts
|
||||
import dotenv from 'dotenv'
|
||||
|
||||
dotenv.config()
|
||||
import 'dotenv/config'
|
||||
```
|
||||
|
||||
This will import the dotenv module and add all the variables we declared in our `.env` file into the node environment variables
|
||||
|
||||
Reference in New Issue
Block a user