'Next.js build with limit number of processes/threads

I'm copy to cloud server fresh next app created by npx create-next-app. When i try run build script the server throws an error 'pthread-create: Resource temporarilt unavalible'.

{
  "name": "next",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "next": "12.1.0",
    "react": "17.0.2",
    "react-dom": "17.0.2"
  },
  "devDependencies": {
    "eslint": "8.11.0",
    "eslint-config-next": "12.1.0"
  }
}

next.config.js

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
}

module.exports = nextConfig

I wrote ticket to server administration and they answered me that server has 32 process limit but next app ned 64 process.

Is there any way to limit nuber of processes on build script?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source