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