feat: add fallback routes and repository event enrichment

This commit is contained in:
RhenCloud committed 2026-08-02 23:23:07 +08:00
1 parent 44b8fead78
commit d419b9c940
11 files changed
+104 -8

No files matched your search

+3
View File
@@ -83,6 +83,9 @@ function validateRoutes(
if (r.lang !== undefined && typeof r.lang !== "string") {
return { ok: false, error: `route "${r.id}".lang must be a string` };
}
if (r.fallback !== undefined && typeof r.fallback !== "boolean") {
return { ok: false, error: `route "${r.id}".fallback must be a boolean` };
}
if (!Array.isArray(r.filters) || r.filters.length === 0) {
return { ok: false, error: `route "${r.id}" needs at least one filter` };
}