mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-14 00:16:44 +00:00
feat(ci): redirect_config for proxied domains
This commit is contained in:
1 parent
17f5816cce
commit
7cea188f74
1 file changed
+7
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user