diff --git a/next.config.ts b/next.config.ts index e5bb4bed1..79d27b2e6 100644 --- a/next.config.ts +++ b/next.config.ts @@ -30,7 +30,7 @@ buildType && console.log(` 🧠 big-AGI: building for ${buildType}...\n`); /** @type {import('next').NextConfig} */ let nextConfig: NextConfig = { - reactStrictMode: true, + reactStrictMode: !process.env.NO_STRICT_MODE, // default: enabled // [exports] https://nextjs.org/docs/advanced-features/static-html-export ...(buildType && {