Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix ENV variables with REACT_APP #2

Open
peteoleary opened this issue Jul 10, 2023 · 0 comments
Open

Prefix ENV variables with REACT_APP #2

peteoleary opened this issue Jul 10, 2023 · 0 comments

Comments

@peteoleary
Copy link

Since React runs in the browser, ENV variables defined on the server need to prefixed with REACT_APP so that React middleware makes them available to the app. Keep in mind that you should never prefix credentials as the values will be visible in the browser

https://create-react-app.dev/docs/adding-custom-environment-variables/

rpcUrl: process.env.NETWORK_RPC_URL || "https://rpc-mumbai.matic.today", // TODO: .env config not working!?!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant