mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-29 23:19:08 +01:00
17 lines
482 B
TypeScript
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"
|
|
);
|
|
}
|