From 0892911ddcbc473a1cf01b9d44a5641db9280e23 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Sun, 23 Nov 2025 21:31:40 -0800 Subject: [PATCH] Next config: conditional strict mode --- next.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && {