I have a react front end with a express back end to interact with the hardhat scripts.
If my config networks look like this:
networks: {
hardhat: {
forking: {
url: process.env.FORKING_URL,
blockNumber: 13195099
}
},
rinkeby: {
url: process.env.RINKEBY_URL
}
}
How does hardhat know which network is running to deploy. If were just running the script I would do --network networkName
but since I have a running application how should I do it?