Shuyan Online BLOG
Teens to Learn Programming with Shuyan
Learn Programming with Shuyan
Home
Web Development
Programming
Frameworks
ShuyanOnline Porject
Course: CSS
Misc & Tips
Tuesday, May 26, 2020
using env-cmd to hide sensitive information (eg: API_KEY)
npm install env-cmd
add .env.development
in package.json
add to scripts: env-cmd -f .env.development
add to .env.development
REACT_APP_NAME=BEST APP
referencing to this varible in jsx:
{process.env.REACT_APP_NAME}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment