Skip to content

feat: Change default mainnet gateway url to icp.net#600

Open
adamspofford-dfinity wants to merge 6 commits into
mainfrom
spofford/new-origin
Open

feat: Change default mainnet gateway url to icp.net#600
adamspofford-dfinity wants to merge 6 commits into
mainfrom
spofford/new-origin

Conversation

@adamspofford-dfinity

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the IC mainnet default HTTP gateway domain to icp.net across core defaults and examples, and improves web-auth identity linking by normalizing delegation domains (rewriting certain icp0.io/icp.net canister domains to ic0.app).

Changes:

  • Switched the default IC mainnet HTTP gateway URL from https://icp0.io to https://icp.net (constants + example configs).
  • Updated the mock project loader to use the shared mainnet URL constants instead of hard-coded strings.
  • Adjusted icp identity link web to normalize the --app delegation domain and rewrite *.icp0.io / *.icp.net canister domains to *.ic0.app.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
examples/icp-network-inline/icp.yaml Updates example connected-network gateway URL to https://icp.net.
examples/icp-network-connected/networks/staging.yaml Updates example staging network URL to https://icp.net.
crates/icp/src/prelude.rs Changes the default mainnet gateway constant to https://icp.net.
crates/icp/src/lib.rs Uses the shared mainnet URL constants in MockProjectLoader.
crates/icp-cli/src/commands/identity/link/web.rs Normalizes --app and rewrites certain delegation domains to ic0.app for web-auth flows.
CHANGELOG.md Documents the gateway default change and the web-auth delegation-domain rewrite behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/icp-cli/src/commands/identity/link/web.rs Outdated
Comment thread CHANGELOG.md Outdated
@raymondk

Copy link
Copy Markdown
Collaborator

We don't need to handle the rewrite anymore - it's going to be handled in II.
We can change this to only use icp.net

Comment thread crates/icp-cli/src/commands/identity/link/web.rs Outdated
@adamspofford-dfinity adamspofford-dfinity marked this pull request as ready for review June 12, 2026 15:46
@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner June 12, 2026 15:46
@raymondk raymondk changed the title feat: Change default gateway url to icp.net, rewrite icp.net to ic0.app in webauth feat: Change default gateway url to icp.net Jun 13, 2026
@raymondk raymondk changed the title feat: Change default gateway url to icp.net feat: Change default mainnet gateway url to icp.net Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants