📜  如何使服务器环境变量可用于节点 js 前端的浏览器 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:34.457000             🧑  作者: Mango

代码示例1
# 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