fix: normalize housekeeping root routes
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user