We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a76603 commit 1a5c9caCopy full SHA for 1a5c9ca
src/ssg/lib/fileSystemHelpers.js
@@ -40,7 +40,7 @@ const ensureDirectory = async (path) => {
40
* Building in a separate temp location releases all file handles
41
* before the final swap.
42
*/
43
-const atomicReplace = async (targetPath, buildFn, sleepTime = 1000) => {
+const atomicReplace = async (targetPath, buildFn, sleepTime = 100) => {
44
const sleep = (duration) => new Promise(resolve => setTimeout(resolve, duration))
45
const tempPath = await atomicFS.mkdtemp(join(tmpdir(), 'atomic-replace-'))
46
try {
0 commit comments