Skip to content

No "--domain" or dfx network.proxy feature yet - useful for developing with an ngrok webhook #365

@tiagoicp

Description

@tiagoicp

Hi SDK team,

Thanks for the great work you have been pulling together with ICP Cli, it's getting top notch.

I was able to get a lot of things working (migrated fully from dfx), there is only one last thing I am noticing on a project of mine.

In it I frequently develop with ngrok to receive webhooks on my local and debug / develop with it.

On dfx you can do "dfx start --domain xyz.com" or on the dfx networks set up a proxy url.

On ICP Cli I understood it's meant to use the gateway host (or on connected networks, the url: field), but it's still not working.

My icp.yaml has:

networks:
  - name: local
    mode: managed
    gateway:
      host: "https://some-server-you-setup.ngrok-free.dev"
      port: 8000
    ii: true

And although the /_/dashboard works, the /?canisterId= or any other path, always gets:

Image

I tried to debug with github copilot and it suspects it could be a hardcoded to "localhost" part here:

Image

Could you check deeper and let me know if you can fix this feature?

Thanks 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions