how to make server environment variables available to browser on frontend in node js

C++
# in the project's root dir create a file named: ".env" and 
# insert the env variables as follows.
# NB: the env variable name must start with REACT_APP for react js projects
REACT_APP_CLIENT_ID=jfjffffaddfeettgydgdffv
REACT_APP_KEY=aaddddawrfffvvvvssaa
Source

Also in C++: