# ZitadelResource.WithExternalDomain

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

Configures the external domain for the Zitadel resource

## Definition

```go
type ZitadelResource interface {
    // ... omitted for brevity
    WithExternalDomain(externalDomain string) ZitadelResource
}
```

## Signature

```go
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()`.

## Defined on

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