simplify wildcard domain on non pangolin-dns

This commit is contained in:
miloschwartz
2026-04-09 17:04:28 -04:00
parent 80f5914fdd
commit 34387d9859
2 changed files with 27 additions and 21 deletions

View File

@@ -10,6 +10,7 @@ import { authCookieHeader } from "@app/lib/api/cookies";
import { GetDNSRecordsResponse } from "@server/routers/domain"; import { GetDNSRecordsResponse } from "@server/routers/domain";
import DNSRecordsTable from "@app/components/DNSRecordTable"; import DNSRecordsTable from "@app/components/DNSRecordTable";
import DomainCertForm from "@app/components/DomainCertForm"; import DomainCertForm from "@app/components/DomainCertForm";
import { build } from "@server/build";
interface DomainSettingsPageProps { interface DomainSettingsPageProps {
params: Promise<{ domainId: string; orgId: string }>; params: Promise<{ domainId: string; orgId: string }>;
@@ -65,12 +66,14 @@ export default async function DomainSettingsPage({
)} )}
</div> </div>
<div className="space-y-6"> <div className="space-y-6">
{build != "oss" && env.flags.usePangolinDns ? (
<DomainInfoCard <DomainInfoCard
failed={domain.failed} failed={domain.failed}
verified={domain.verified} verified={domain.verified}
type={domain.type} type={domain.type}
errorMessage={domain.errorMessage} errorMessage={domain.errorMessage}
/> />
) : null}
<DNSRecordsTable records={dnsRecords} type={domain.type} /> <DNSRecordsTable records={dnsRecords} type={domain.type} />

View File

@@ -239,6 +239,7 @@ export default function CreateDomainForm({
className="space-y-4" className="space-y-4"
id="create-domain-form" id="create-domain-form"
> >
{build != "oss" && env.flags.usePangolinDns ? (
<FormField <FormField
control={form.control} control={form.control}
name="type" name="type"
@@ -254,6 +255,8 @@ export default function CreateDomainForm({
</FormItem> </FormItem>
)} )}
/> />
) : null}
<FormField <FormField
control={form.control} control={form.control}
name="baseDomain" name="baseDomain"