We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c10098 commit 4b2b0d3Copy full SHA for 4b2b0d3
.changeset/funny-peas-call.md
@@ -0,0 +1,5 @@
1
+---
2
+"wrangler": patch
3
4
+
5
+Fixed Pages Functions path routing on Windows
packages/wrangler/pages/functions/filepath-routing.ts
@@ -93,7 +93,8 @@ export async function generateConfigFromFileTree({
93
94
let routePath = path
95
.relative(baseDir, filepath)
96
- .slice(0, -ext.length);
+ .slice(0, -ext.length)
97
+ .replaceAll(path.win32.sep, "/");
98
99
if (isIndexFile || isMiddlewareFile) {
100
routePath = path.dirname(routePath);
0 commit comments