Environment variables from file in webstorm

Hello, does anyone know of a way to load environment variables from .env file when running node.js from webstorm 2022.1.4 ?

I have dotenv installed.


this configuration did not work :(

1 comment

It's not specific to the IDE, you need following the instructions in https://github.com/motdotla/dotenv#readme

If it works for you in terminal, it should run equally well from within the IDE


Please sign in to leave a comment.