Skip to content

Commit 11f4a46

Browse files
authored
fix "Invalid operation path on windows"
1 parent 6274cf9 commit 11f4a46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function getRoutePathName(filePath: string, rootPath: string) {
1414
.replace(rootPath, "")
1515
.replace("[", "{")
1616
.replace("]", "}")
17+
.replaceAll("\\", "/")
1718
.replace("/route.ts", "");
1819
}
1920

0 commit comments

Comments
 (0)