Skip to content

Commit 4a370bb

Browse files
committed
add logs to debug windows issue
1 parent 10c5d11 commit 4a370bb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

packages/docusaurus/src/ssg/ssgExecutor.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,21 @@ const createPooledSSGExecutor: CreateSSGExecutor = async ({
113113
`Create SSG pool with ${numberOfThreads} threads`,
114114
async () => {
115115
const Tinypool = await import('tinypool').then((m) => m.default);
116+
117+
const filename = path.resolve(__dirname, 'ssgWorkerThread.js');
118+
console.log('TEST WINDOWS filename', filename);
119+
120+
console.log(
121+
'TEST WINDOWS 1',
122+
path.resolve(__dirname, 'ssgWorkerThread.js'),
123+
);
124+
console.log(
125+
'TEST WINDOWS 1',
126+
path.posix.resolve(__dirname, 'ssgWorkerThread.js'),
127+
);
128+
116129
return new Tinypool({
117-
filename: path.posix.resolve(__dirname, './ssgWorkerThread.js'),
130+
filename,
118131
minThreads: numberOfThreads,
119132
maxThreads: numberOfThreads,
120133
concurrentTasksPerWorker: 1,

0 commit comments

Comments
 (0)