next.js
next.js copied to clipboard
Add with-ethers-hardhat example
Examples
- Add with-ethers-hardhat example
With the current state of web3 I really think it would be detrimental to allow this kind of content in the Next.js repo.
Thank you for your feedback @awareness481. Can you elaborate a little bit more on saying "this kind of content"?
@awareness481 Vercel seems to be looking into expanding support for crypto/Web3 https://vercel.com/docs/concepts/functions/edge-functions#crypto.
@awareness481 could you expand on why?
@guillaumegaluz note that’s for the cryptography web APIs, which are related, but not exactly the same 😁
@leerob Above framework can be used auto mine ETH blocks. As you certainly know that is disallowed from most hosts, including Vercel. With Next.js being primarily a web framework I certainly disagree with adding an example with behavior that is not allowed in most server hosts.
@silentlight could you clarify the intent of the example? @awareness481 looking at the code, it doesn't seem like it's set up for that, but I could be missing something.
@silentlight could you clarify the intent of the example? @awareness481 looking at the code, it doesn't seem like it's set up for that, but I could be missing something.
Not the code above but the framework itself https://hardhat.org/hardhat-network/explanation/mining-modes.html#mining-modes
@silentlight The env file (.env.local.example) exposes user's private keys. One way to resolve this is to use Truffle Dashboard
@leerob Onboarding devs to web3 primitives is no easy task. This example will accelerate crypto adoption by web2 devs.