feat(ci): redirect_config for proxied domains

This commit is contained in:
William Harrison committed 2025-01-14 18:05:02 +08:00
1 parent 17f5816cce
commit 7cea188f74
1 file changed
+7 -1
+7 -1
View File
@@ -267,7 +267,13 @@ t("All files should have valid record types", (t) => {
);
}
if (data.redirect_config) {
t.true(recordKeys.includes("URL"), `${file}: Redirect config must be combined with a URL record`);
t.true(
recordKeys.includes("URL") || data.proxied,
`${file}: Redirect config must be combined with a URL record or the domain must be proxied`
);
if (data.redirect_config.redirect_paths) {
t.true(recordKeys.includes("URL"), `${file}: redirect_config.redirect_paths requires a URL record`);
}
}
validateRecordValues(t, data, file);