N
N
Nikita2021-04-25 22:57:21
React
Nikita, 2021-04-25 22:57:21

Why is process.env an empty object in index.tsx?

I set env variables using cross-env like this:
"cross-env WEBPACK_MODE=development REACT_APP_TEST=12345 webpack serve --mode development --open"
Then I console.log in index.tsx but process.env is empty .

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question