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:
Seren_Modz 21
2025-07-20 18:53:43 +02:00
committed by GitHub
parent 1cb60c909c
commit f9be7988f2
9 changed files with 14 additions and 33 deletions
+1 -3
View File
@@ -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