A
A
Arthur2019-11-22 11:08:55
Node.js
Arthur, 2019-11-22 11:08:55

At what point are the environments set?

When are environment variables set? eg process.env
At application build time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2019-11-22
@cloudz

The very name of environment variables implies that they are set by the environment when the program starts.
[telepathy] however, judging by the React tag, you have code for the browser that is being assembled by something (webpack, rollup, etc.) and these assemblers can replace process.env at the build stage right in the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question