S
S
Seva2018-04-20 14:06:38
Node.js
Seva, 2018-04-20 14:06:38

How to change variable in node env?

Hello,
There is a variable in .env. It is necessary that when the application starts with the dev ( npm run start:dev) flag, it changes from true to false. How it's done? I can't gobble up anything. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Chernyshev, 2018-04-26
@IvanBlacky

process.env.YOUR_VAR = false;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question