Skip to content

Commit c59c356

Browse files
committed
fix windows paths
1 parent 5f93039 commit c59c356

File tree

1 file changed

+3
-1
lines changed
  • packages/open-next/src/plugins

1 file changed

+3
-1
lines changed

packages/open-next/src/plugins/edge.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export function openNextEdgePlugins({
3939
isInCloudflare,
4040
}: IPluginSettings): Plugin {
4141
const entryFiles =
42-
middlewareInfo?.files.map((file: string) => path.join(nextDir, file)) ?? [];
42+
middlewareInfo?.files.map((file: string) =>
43+
getCrossPlatformPathRegex(path.join(nextDir, file)),
44+
) ?? [];
4345
const routes = middlewareInfo
4446
? [
4547
{

0 commit comments

Comments
 (0)