Skip to content

Commit 776fab9

Browse files
sommeeeervicb
andauthored
Update packages/cloudflare/src/cli/build/patches/plugins/load-manifest.ts
Co-authored-by: Victor Berchet <[email protected]>
1 parent 06a4687 commit 776fab9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cloudflare/src/cli/build/patches/plugins/load-manifest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ function loadManifest($PATH, $$$ARGS) {
6363
},
6464
fix: `
6565
function loadManifest($PATH, $$$ARGS) {
66-
if ($PATH === "/.next/BUILD_ID") {
66+
$PATH = $PATH.replaceAll(${JSON.stringify(sep)}, ${JSON.stringify(posix.sep)});
67+
if ($PATH === "/.next/BUILD_ID") {
6768
return process.env.NEXT_BUILD_ID;
6869
}
69-
$PATH = $PATH.replaceAll(${JSON.stringify(sep)}, ${JSON.stringify(posix.sep)});
7070
${returnManifests}
7171
throw new Error(\`Unexpected loadManifest(\${$PATH}) call!\`);
7272
}`,

0 commit comments

Comments
 (0)