R
R
Renhor2019-12-07 13:51:46
Node.js
Renhor, 2019-12-07 13:51:46

How to add ENV variables on hosting for access from process.env.?

I am developing an application on NUXT and I have a dozen or two secret keys. When I was coding in PHP, everything was simple, because. the code from the PHP file cannot be pulled out and I just put the keys into one file without fear.
What about when developing with Node.js? Did I understand correctly that any server-side JS file can be viewed, which means you can’t just hide them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2019-12-07
@Renhor

And how do you look at them, they will be executed by a node in the same way as PHP files are executed by PHP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question