fix: normalize housekeeping root routes

This commit is contained in:
Simo committed 2026-08-25 18:14:28 +02:00
1 parent dee4031421
commit a619f89106
2 files changed
+37 -1

No files matched your search

@@ -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),