Merge pull request #17369 from is-a-dev/wdhdev-patch-1

feat(ci): allow proxied CNAMEs with other records
This commit is contained in:
William Harrison
2024-11-26 21:06:26 +11:00
committed by GitHub
+2 -2
View File
@@ -95,8 +95,8 @@ t("All files should have valid record types", (t) => {
t.true(validRecordTypes.includes(key), `${file}: Invalid record type: ${key}`);
});
// CNAME records cannot be combined with any other record type
if (recordKeys.includes("CNAME")) {
// CNAME records cannot be combined with any other record type unless it is proxied
if (recordKeys.includes("CNAME") && !data.proxied) {
t.is(recordKeys.length, Number(1), `${file}: CNAME records cannot be combined with other records`);
}