Skip to content

Commit 88d5818

Browse files
remove unnecessary new function
1 parent 2ccd25b commit 88d5818

File tree

3 files changed

+2
-47
lines changed

3 files changed

+2
-47
lines changed

packages/cloudflare/src/cli/build/patches/investigated/patch-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from "node:path";
22

33
import type { BuildOptions } from "@opennextjs/aws/build/helper.js";
44

5-
import { normalizePathForInlineCode } from "../../utils/normalize-path-for-inline-code.js";
5+
import { normalizePath } from "../../utils/normalize-path.js";
66

77
/**
88
* Sets up the OpenNext cache handler in a Next.js build.
@@ -26,7 +26,7 @@ export async function patchCache(code: string, openNextOptions: BuildOptions): P
2626
return code.replace(
2727
"const { cacheHandler } = this.nextConfig;",
2828
`const cacheHandler = null;
29-
CacheHandler = require('${normalizePathForInlineCode(cacheFilePath)}').default;
29+
CacheHandler = require('${normalizePath(cacheFilePath)}').default;
3030
`
3131
);
3232
}

packages/cloudflare/src/cli/build/utils/normalize-path-for-inline-code.spec.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/cloudflare/src/cli/build/utils/normalize-path-for-inline-code.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)