Add cusotmizable cname target domain

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-01 09:07:32 +02:00
parent e33bc760d5
commit 2865b484bc
7 changed files with 112 additions and 21 deletions

View File

@@ -3325,7 +3325,7 @@ func (r *mutationResolver) CreateCustomDomain(ctx context.Context, input types.C
}
edge := &types.CustomDomainEdge{
Node: types.NewCustomDomain(domain),
Node: types.NewCustomDomain(domain, r.customDomainCname),
Cursor: page.NewCursorKey(domain.ID, domain.CreatedAt),
}
@@ -4032,7 +4032,7 @@ func (r *organizationResolver) CustomDomains(ctx context.Context, obj *types.Org
return nil, fmt.Errorf("failed to list custom domains: %w", err)
}
return types.NewCustomDomainConnection(page, r, obj.ID), nil
return types.NewCustomDomainConnection(page, r, obj.ID, r.customDomainCname), nil
}
// TotalCount is the resolver for the totalCount field.