ChangoMan / web3modal-example

Example using web3modal and Next.js
web3modal-example.vercel.app
MIT License
104 stars 49 forks source link

infura id visible on production #3

Closed xale76 closed 2 years ago

xale76 commented 2 years ago

Hello, great job. Anyway I see that the infuraId is still visible in production demo. It's a big problem, how to solve this?

ChangoMan commented 2 years ago

@xale76 Hello! You would need to use something like environment variables in order to hide the infura ID in production. This differs depending on what company you use for deployment. Vercel, for example, has instructions here: https://vercel.com/docs/projects/environment-variables

xale76 commented 2 years ago

Thank you for the answer. Anyway, I think that infuraid will be always visibile, because react is a framework that runs on client side. So it needs the value in clear in order to work