Skip to content

Commit ca8ed91

Browse files
Try to improve build speed with worker threads and some other tweaks (#1255)
* Set cpu=1 in next.config.js * Try to improve build speed a little using worker threads. * Make this run on prod only
1 parent 6251d6c commit ca8ed91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

next.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const PROD_OPTIMIZATIONS = IS_DEV
44
? {}
55
: {
66
experimental: {
7-
cpus: 1,
7+
workerThreads: true,
8+
cpus: 2,
9+
sharedPool: true,
810
},
911
};
1012

0 commit comments

Comments
 (0)