mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-29 16:24:41 +00:00
feat(ci): allow proxied CNAMEs with other records
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user