Files
pangolin/src/lib/customDnsRecords.ts
T
2026-10-28 16:32:43 -04:00

17 lines
482 B
TypeScript

import { build } from "@server/build";
import { Env } from "./types/env";
// Custom records are only served by Pangolin's own nameservers, so they only
// apply to NS-delegated domains on deployments running Pangolin DNS
export function supportsCustomDnsRecords(
env: Env,
domainType: string | null
): boolean {
return (
build !== "oss" &&
env.flags.usePangolinDns &&
!env.flags.disableEnterpriseFeatures &&
domainType === "ns"
);
}