wslyvh / nexth

A Next.js + Ethereum starter kit with Viem, Wagmi, Web3Modal, SIWE, Tailwind, daisyUI and more to quickly ship production-ready Web3 Apps ⚡
https://nexth.vercel.app/
MIT License
671 stars 141 forks source link

Ability to use project without needing to add env vars #38

Open benjaminshafii opened 6 months ago

benjaminshafii commented 6 months ago

Just tried to use the boilerplate for the first time and found it a bit cumbersome to have all these api keys setup.

Think it would be cool to just have a zero-config option to use the boilerplate for the first time.

Dirty way to solve this (the way i did it) is to comment out the config requirements inside of hardhat.config.ts

Happy to do a PR, if you have a better way to solve this don't hesitate to share

wslyvh commented 6 months ago

Hi Ben, thanks for the feedback!

I agree that it should be possible to run with zero-config. Are you just having these issues with hardhat? In that case, I likely have messed that up with recent migration to hardhat-viem and ignition. I think the right approach would be to check if variables are available. If so, it include verification steps, etc. If not, skip those steps. A default deployer key would solve the default build/deploy task.

If you want to submit a PR for it, feel free! Otherwise, will try to fix later (but I'll be out for ~2 weeks)

benjaminshafii commented 6 months ago

alright will have a look if i have a nice way to tackle it the way you described it and do a small pr if it works :)

thanks for your work on this, cool stack