better-chatbot / next.config.ts
Bot
Limit Next.js workers to prevent OOM build error
4621b01
Raw
History Blame Contribute Delete
623 Bytes
import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
const BUILD_OUTPUT = process.env.NEXT_STANDALONE_OUTPUT
? "standalone"
: undefined;
export default () => {
const nextConfig: NextConfig = {
output: BUILD_OUTPUT,
cleanDistDir: true,
devIndicators: {
position: "bottom-right",
},
env: {
NO_HTTPS: process.env.NO_HTTPS,
},
experimental: {
taint: true,
authInterrupts: true,
cpus: 2,
memoryBasedWorkersCount: true,
},
};
const withNextIntl = createNextIntlPlugin();
return withNextIntl(nextConfig);
};