Deploy an app twice on the IC (Staging env)

Hi everyone,
Do you know if there is a way to deploy an app twice on the IC to use those canisters as a staging environment ?

You could create a custom network config in dfx.json named staging that points to ic0.app. When you do a dfx deploy --network staging, it will get a new canisterId on the IC, letting you differentiate the two targets

2 Likes
"staging": {
      "providers": [
        "https://ic0.app"
      ],
      "type": "persistent"
    },
dfx deploy --network=staging 
Creating a wallet canister on the staging network.
The replica returned an HTTP Error: Http Error: status 404 Not Found, content type "text/html", content: <html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.19.10</center>
</body>
</html>

Do you have another provider url to try ?