Skip to content

Commit b62b6c7

Browse files
add network based on environment
1 parent 10bedf2 commit b62b6c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/scaffold.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const DEFAULT_ALCHEMY_API_KEY = "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF";
1515

1616
const scaffoldConfig = {
1717
// The networks on which your DApp is live
18-
targetNetworks: [chains.base],
18+
targetNetworks: [chains.base, ...(process.env.NODE_ENV === "development" ? [chains.hardhat] : [])],
1919
// The interval at which your front-end polls the RPC servers for new data (it has no effect if you only target the local network (default is 4000))
2020
pollingInterval: 30000,
2121
// This is ours Alchemy's default API key.

0 commit comments

Comments
 (0)