Skip to content

docs: document the 'Use *.dev.localhost URLs?' interactive prompt for aspire new#697

Open
Copilot wants to merge 5 commits intomainfrom
copilot/add-documentation-aspire-new-command
Open

docs: document the 'Use *.dev.localhost URLs?' interactive prompt for aspire new#697
Copilot wants to merge 5 commits intomainfrom
copilot/add-documentation-aspire-new-command

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

The aspire new command reference page had no documentation for the "Use *.dev.localhost URLs?" interactive prompt, leaving users without enough context to make an informed choice.

Changes

  • New "Interactive prompts" section in aspire-new.mdx with a dedicated sub-section for the *.dev.localhost prompt
  • Explains the prompt's effect: whether the generated launch profile uses wildcard *.dev.localhost subdomains (HTTPS) vs. standard localhost:<port> (HTTP)
  • Yes path: per-service HTTPS subdomain URLs, isolated cookie/auth origins, production-like topology; documents the aspire certs trust prerequisite with a <LearnMore> link to the aspire certs trust command reference
  • No path (default): plain http://localhost:<port>, no certificate setup required, works everywhere
  • Safari caveat: *.dev.localhost subdomains don't resolve natively in Safari; added an <Aside> note pointing users to choose No or add a hosts-file entry

… aspire new

Agent-Logs-Url: https://github.com/microsoft/aspire.dev/sessions/49848864-c0a9-482c-a045-a860f76cb80f

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI changed the title [WIP] Add documentation for '*.dev.localhost' prompt in aspire new command docs: document the 'Use *.dev.localhost URLs?' interactive prompt for aspire new Apr 10, 2026
Copilot AI requested a review from IEvangelist April 10, 2026 13:33
@IEvangelist IEvangelist marked this pull request as ready for review April 10, 2026 19:58
@IEvangelist IEvangelist requested a review from mitchdenny as a code owner April 10, 2026 19:58
Copilot AI review requested due to automatic review settings April 10, 2026 19:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds missing reference documentation for the aspire new interactive prompt “Use *.dev.localhost URLs?” so users understand the tradeoffs between wildcard subdomain HTTPS URLs and standard localhost URLs during template creation.

Changes:

  • Adds an Interactive prompts section to the aspire new command reference.
  • Documents what choosing Yes vs No does for generated service URLs.
  • Adds a Safari-related note for *.localhost-style subdomains.

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

Comment thread src/frontend/src/content/docs/reference/cli/commands/aspire-new.mdx Outdated
Comment thread src/frontend/src/content/docs/reference/cli/commands/aspire-new.mdx Outdated
Comment thread src/frontend/src/content/docs/reference/cli/commands/aspire-new.mdx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…host wording

Agent-Logs-Url: https://github.com/microsoft/aspire.dev/sessions/b4be3134-13a1-4f17-b67e-dd41e7a87ace

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI requested a review from IEvangelist April 11, 2026 02:13
@IEvangelist IEvangelist enabled auto-merge (squash) April 11, 2026 02:16

This prompt determines whether the generated launch profile configures your Aspire services to be accessible via `*.dev.localhost` wildcard subdomain URLs (for example, `https://myservice.dev.localhost`) instead of standard `http://localhost` with port numbers.

#### What are \*.dev.localhost URLs?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is missing lots of nuance about what these are and aren't. The biggest being that it only works in browsers.

- Gives each service its own origin, which prevents cookie and authentication token collisions between services running on the same machine.
- More closely mirrors a production setup where services are hosted on separate (sub)domains.

**Prerequisite:** The ASP.NET Core HTTPS development certificate must be installed and trusted on your machine. Run the following command if you haven't done so already:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is true, but I would just say developer cert and move all of the details about the cert to the cert article.

Copy link
Copy Markdown
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

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

Content is accurate, well-structured, and fills a real gap in the CLI reference. Just a few minor readability nits — nothing blocking. Nice work! 👍

Comment on lines +47 to +48
This prompt determines whether the generated launch profile configures your Aspire services to be accessible via `*.dev.localhost` wildcard subdomain URLs (for example, `https://myservice.dev.localhost`) instead of standard `http://localhost` with port numbers.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: The Safari caveat is mentioned here and again in the <Aside> on line 73. Consider dropping the inline mention from this paragraph and relying solely on the callout — it's more prominent and avoids saying the same thing twice.

Suggested change
This prompt determines whether the generated launch profile configures your Aspire services to be accessible via `*.dev.localhost` wildcard subdomain URLs (for example, `https://myservice.dev.localhost`) instead of standard `http://localhost` with port numbers.
`*.dev.localhost` is a wildcard subdomain pattern that resolves to your local machine (`127.0.0.1` or `::1`) in most modern browsers without additional DNS configuration. The ASP.NET Core HTTPS development certificate includes `*.dev.localhost` as a Subject Alternative Name (SAN), so browsers trust connections to any subdomain under `*.dev.localhost` when the certificate is installed and trusted.

> **Use \*.dev.localhost URLs?**

This prompt determines whether the generated launch profile configures your Aspire services to be accessible via `*.dev.localhost` wildcard subdomain URLs (for example, `https://myservice.dev.localhost`) instead of standard `http://localhost` with port numbers.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: This paragraph packs DNS resolution behavior, browser support exceptions, and HTTPS certificate details into one block. Consider splitting it into two paragraphs — one for DNS/browser resolution and one for the certificate trust story — to make it easier to scan.

Comment on lines +73 to +77
`127.0.0.1` by default. If you use Safari, choose **No** or add an entry to
your hosts file.
</Aside>

#### No — use standard localhost URLs (default)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: "add an entry to your hosts file" leaves the reader guessing what the entry should be. A brief inline example would make this immediately actionable:

Suggested change
`127.0.0.1` by default. If you use Safari, choose **No** or add an entry to
your hosts file.
</Aside>
#### No — use standard localhost URLs (default)
<Aside type="note">
Safari on macOS does not resolve `*.dev.localhost` subdomains to
`127.0.0.1` by default. If you use Safari, choose **No** or add entries to
your hosts file (for example, `127.0.0.1 myservice.dev.localhost`).
</Aside>

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.

aspire new command article is missing documentation for the 'Use *.dev.localhost URLs?' prompt

5 participants