Skip to content

Commit f147467

Browse files
committed
chore: windows!
1 parent 7ec3740 commit f147467

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/helpers/files.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { cpus } = require('os')
44
const { existsSync, readJson, move, cpSync, copy, writeJson } = require('fs-extra')
55
const pLimit = require('p-limit')
66
const { join } = require('pathe')
7+
const slash = require('slash')
78
const glob = require('tiny-glob')
89

910
const TEST_ROUTE = /(|\/)\[[^/]+?](\/|\.html|$)/
@@ -30,7 +31,8 @@ exports.moveStaticPages = async ({ netlifyConfig, target, i18n, failBuild }) =>
3031

3132
// Limit concurrent file moves to number of cpus or 2 if there is only 1
3233
const limit = pLimit(Math.max(2, cpus().length))
33-
const promises = pages.map(async (filePath) => {
34+
const promises = pages.map(async (rawPath) => {
35+
const filePath = slash(rawPath)
3436
if (isDynamicRoute(filePath)) {
3537
return
3638
}

0 commit comments

Comments
 (0)