Environment variables from file in webstorm Elavi 创建于 2022年08月24日 07:28 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 :(
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