# ZitadelResource.withExternalDomain

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

Configures the external domain for the Zitadel resource

## Definition

```typescript
interface ZitadelResource {
  // ... omitted for brevity
  withExternalDomain(externalDomain: string): ZitadelResource;
}
```

## Signature

```typescript
withExternalDomain(externalDomain: string): ZitadelResource
```

## Parameters

- `externalDomain` (`string`)

## Returns

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

## Defined on

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