# WithExternalDomain

- Module: [CommunityToolkit.Aspire.Hosting.Zitadel](/reference/api/go/communitytoolkit.aspire.hosting.zitadel.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: [`ZitadelResource`](/reference/api/go/communitytoolkit.aspire.hosting.zitadel/zitadelresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Configures the external domain for the Zitadel resource

## Definition

```go
func (ZitadelResource) WithExternalDomain(externalDomain string) ZitadelResource
```

## Parameters

- `externalDomain` (`string`) -- The external domain to use (e.g., "auth.example.com"). Cannot be null or empty.

## Returns

[`ZitadelResource`](/reference/api/go/communitytoolkit.aspire.hosting.zitadel/zitadelresource.md) -- The resource builder for chaining.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`ZitadelResource`](/reference/api/go/communitytoolkit.aspire.hosting.zitadel/zitadelresource.md)
