This commit is contained in:
William Harrison committed 2025-04-23 16:22:29 +08:00
1 parent 3f1d17eb90
commit a03e15fc30
3 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
"email": "admin@is-a.dev" "email": "admin@is-a.dev"
}, },
"record": { "record": {
"CNAME": "is-a.dev" "CNAME": "is-a-dev.github.io"
}, },
"proxied": true "proxied": true
} }
+1 -1
View File
@@ -4,6 +4,6 @@
"email": "admin@is-a.dev" "email": "admin@is-a.dev"
}, },
"record": { "record": {
"CNAME": "is-a.dev" "CNAME": "is-a-dev.github.io"
} }
} }
+1 -3
View File
@@ -140,9 +140,7 @@ function validateRecordValues(t, data, file) {
if (key === "CNAME") { if (key === "CNAME") {
t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`); t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`);
t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`); t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
if (data.owner.username.toLowerCase() !== "is-a-dev") { t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`);
t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`);
}
} else if (key === "URL") { } else if (key === "URL") {
t.true( t.true(
value.startsWith("http://") || value.startsWith("https://"), value.startsWith("http://") || value.startsWith("https://"),