From 3cc201a0cebec4da97a0e6bfce4bf24779bdb983 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 25 Aug 2026 22:30:35 +0200 Subject: [PATCH] Optimize next.config.ts with SWC minification and React strict mode --- next.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/next.config.ts b/next.config.ts index 88d91026..16931697 100644 --- a/next.config.ts +++ b/next.config.ts @@ -11,7 +11,9 @@ const getGitCommit = () => { const nextConfig: NextConfig = { deploymentId: process.env.NEXT_DEPLOYMENT_ID?.trim() || getGitCommit(), - serverExternalPackages: ["lzma"], + swcMinify: true, + reactStrictMode: true, + serverExternalPackages: ["lzma", "sharp"], }; export default nextConfig;