How to use environment variables in Github Page?
问题 I want to deploy my create-react-app project to GitHub Pages. But I have a few secret keys. How can I manage these keys inside my React app? 回答1: Edited 6/7 Reference @alicia-jasmine "React is purely a front-end framework. Everything accessible to React (even if you embed it through a build step) will later be visible in the front-end code and someone relatively basic to find. To really keep them secret you MUST have something server side!" The following answer will actually expose the key in