fix: normalize housekeeping root routes

This commit is contained in:
2026-08-25 18:14:28 +02:00
parent dee4031421
commit a619f89106
2 changed files with 37 additions and 1 deletions
@@ -38,7 +38,7 @@ function discoverSurface(
const sourceFile = relative(rootDir, entryPath).replaceAll("\\", "/");
const routeSegments = relative(surfaceDirectory, directory)
.split(/[/\\]/)
.filter(Boolean);
.filter((segment) => segment && segment !== ".");
pages.push({
surface,
legacyPath: toLegacyPath(surface, routeSegments),