Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 1ae4134

Browse files
committed
revert backslash change since fix in next 10.0.4
1 parent e69671d commit 1ae4134

File tree

3 files changed

+180
-173
lines changed

3 files changed

+180
-173
lines changed

lib/helpers/getPagesManifest.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,7 @@ const { readJSONSync } = require("fs-extra");
33
const { NEXT_DIST_DIR } = require("../config");
44

55
const getPagesManifest = () => {
6-
const contents = readJSONSync(
7-
join(NEXT_DIST_DIR, "serverless", "pages-manifest.json")
8-
);
9-
// Next.js mistakenly puts backslashes in certain paths on Windows, replace
10-
Object.entries(contents).forEach(([key, value]) => {
11-
contents[key] = value.replace(/\\/g, "/");
12-
});
13-
return contents;
6+
return readJSONSync(join(NEXT_DIST_DIR, "serverless", "pages-manifest.json"));
147
};
158

169
module.exports = getPagesManifest;

0 commit comments

Comments
 (0)