Configuring Environment Variables in Node.js

Configuring Environment Variables in Node.js

Code Realm

5 лет назад

63,222 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Herbert Ssevume
Herbert Ssevume - 13.04.2023 17:54

That was a very helpful approach of explanation. I managed to debug and fix my environmental variables issue I had. Thank you sir.

Ответить
Shura
Shura - 10.06.2022 19:24

1. you don't have to install something globally to run "npx something"
2. to avoid extra space you can wrap the value in single quotes, e.g. "set NODE_ENV='development' && otherstuff..."

Ответить
Achintha Premarathne
Achintha Premarathne - 27.04.2022 05:48

Great video, really helpful. Thank you.

Ответить
WittCode
WittCode - 17.01.2022 18:51

Thanks for this video man!

Ответить
Temitope Akinsoto
Temitope Akinsoto - 15.11.2021 09:21

Video was sooo good, had no choice but to subscribe! Thank you

Ответить
Interesting Stuffs
Interesting Stuffs - 30.10.2021 13:30

FAB!

Ответить
Kennedy Chidi
Kennedy Chidi - 19.09.2021 03:54

Thanks... I recommend you post this on stack overflow

Ответить
Mr. Lion
Mr. Lion - 26.07.2021 18:45

All the commands here do not work under Windows. Too bad. Trifles a statement that it would work with "set" under Windows, but not a single one works. Very sad ... One should take a statement only if you have tested this !!!

Ответить
AVINASH MALAKAR
AVINASH MALAKAR - 22.07.2021 14:48

good..

Ответить
Atul Sharma
Atul Sharma - 05.07.2021 22:28

Thanks Bro was confused why undefined was coming in console export $(cat .env) works like charm
But a question when i deploy my app to any cloud platform like heroku or any other does it work. means they just ask for environment variables while hosting during production

Ответить
Path Seeker
Path Seeker - 31.05.2021 14:38

Thank you

Ответить
asb
asb - 06.05.2021 22:11

life saver. thank you.

Ответить
Amit Tyagi
Amit Tyagi - 01.02.2021 14:08

Thanks for this tutorial, really informative. Can we get package.json information (such as version, script etc) at run time?

Ответить
vamshi krishna
vamshi krishna - 21.01.2021 17:56

thank you soo much

Ответить
Vespula Vulgaris
Vespula Vulgaris - 26.12.2020 01:31

subscribed!

Ответить
Coding Cruxes
Coding Cruxes - 21.12.2020 23:24

Perfectly concise. Answered my questions.

Ответить
Lyall van der Linde
Lyall van der Linde - 15.12.2020 19:11

nice video. But still trying to figure out how to have different configurations for staging and production. for example if i deploy to production, where do I store the .env file, because those variables are specific to production.

Ответить
Gowtham Bhat
Gowtham Bhat - 21.09.2020 18:42

you come straight to point, I love it ... thanks for the help man..really appreciate it

Ответить