turbo-eth / template-web3-app

⚡️ Web3 App Template built using Next.js, RainbowKit, SIWE, Disco, and more!
https://www.turboeth.xyz
MIT License
334 stars 89 forks source link

[integrations] Fix: move disco and etherscan env variables to public #86

Closed marthendalnunes closed 1 year ago

marthendalnunes commented 1 year ago

After adding the t3-env package to TurboETH, we found a few misconfigurations on the env variables. DISCO_API_KEY, ETHERSCAN_API_KEY, ETHERSCAN_API_KEY_OPTIMISM, ETHERSCAN_API_KEY_ARBITRUM, ETHERSCAN_API_KEY_POLYGON were defined as private env variables but were being used by the client. After adding the t3-env, the Rainbowkit, Etherscan and Disco integrations are breaking due to runtime env var checking. This PR makes the above env variables to public by adding the NEXT_PUBLIC prefix and updating the t3-env configs.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
light-turbo-eth ✅ Ready (Inspect) Visit Preview Jun 7, 2023 1:38am
turbo-eth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2023 1:38am