microsoft / microsoft/aspire

Should `HostUrl` remap `*.dev.localhost` urls?

Open
#13,130 0 comments 0 reactions 0 assignees View on GitHub
area-app-model
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

If you have a `*.dev.localhost` url, `HostUrl` doesn't map the url.

### Expected Behavior

_No response_

### Steps To Reproduce

```cs
container
.WithEnvironment("Foo_1", new HostUrl("http://localhost:1234"))
.WithEnvironment("Foo_2", new HostUrl("http://foo.dev.localhost:1234"))
```

I'm expecting that `Foo_2` should map to something else, as `foo.dev.localhost` will definitely not resolve correctly within the container.

Image

### Exceptions (if any)

_No response_

### .NET Version info

Aspire 13.0.0+7512c2944094a58904b6c803aa824c4a4ce42e11

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.