Skip to content

Commit 16d1d87

Browse files
committed
fix windows paths
1 parent 5f93039 commit 16d1d87

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

+3-1
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+
path.join(nextDir, file).replace(/\\/g, "/"),
44+
) ?? [];
4345
const routes = middlewareInfo
4446
? [
4547
{

0 commit comments

Comments
 (0)