Bot commited on
Commit
4621b01
·
1 Parent(s): a0f7b65

Limit Next.js workers to prevent OOM build error

Browse files
Files changed (1) hide show
  1. next.config.ts +2 -0
next.config.ts CHANGED
@@ -18,6 +18,8 @@ export default () => {
18
  experimental: {
19
  taint: true,
20
  authInterrupts: true,
 
 
21
  },
22
  };
23
  const withNextIntl = createNextIntlPlugin();
 
18
  experimental: {
19
  taint: true,
20
  authInterrupts: true,
21
+ cpus: 2,
22
+ memoryBasedWorkersCount: true,
23
  },
24
  };
25
  const withNextIntl = createNextIntlPlugin();