Skip to content

Commit 43081d2

Browse files
committed
remove cpu limit
1 parent 515d434 commit 43081d2

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Diff for: next.config.js

-15
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@ const createNextIntlPlugin = require("next-intl/plugin")
99

1010
const withNextIntl = createNextIntlPlugin()
1111

12-
const LIMIT_CPUS = Number(process.env.LIMIT_CPUS ?? 2)
13-
14-
const experimental = LIMIT_CPUS
15-
? {
16-
// This option could be enabled in the future when flagged as stable, to speed up builds
17-
// (see https://nextjs.org/docs/pages/building-your-application/configuring/mdx#using-the-rust-based-mdx-compiler-experimental)
18-
// mdxRs: true,
19-
20-
// Reduce the number of cpus and disable parallel threads in prod envs to consume less memory
21-
workerThreads: false,
22-
cpus: LIMIT_CPUS,
23-
}
24-
: {}
25-
2612
/** @type {import('next').NextConfig} */
2713
module.exports = (phase, { defaultConfig }) => {
2814
let nextConfig = {
@@ -114,7 +100,6 @@ module.exports = (phase, { defaultConfig }) => {
114100
nextConfig = {
115101
...nextConfig,
116102
experimental: {
117-
...experimental,
118103
outputFileTracingExcludes: {
119104
"*": [
120105
/**

0 commit comments

Comments
 (0)