How to set up environment variables in Intellij Idea for NodeJS


I'm trying to set environment variables in node - and for the life of me I can't figure it out. I can do it via a .env file, but when I try to add it via the config I don't see them. What am I missing? The documentation for intellij seems incredibly sparse on this.


Also, if they do run, are they accessed via process.env, as they would via the .env file?




1 comment
Comment actions Permalink

what do you mean saying that you can't see them? And yes, they have to be accessed with process.env.<var name> just as other environment vars


Please sign in to leave a comment.