From 17971f2a986389626e32c7b309dc8be197d7ac61 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 11 Jun 2026 15:47:48 +0000 Subject: [PATCH] Disable React Compiler to fix SSR prerender on Linux The React Compiler (reactCompiler: true) generates code that calls react/compiler-runtime during SSR, which resolves to null on Linux/bun, causing "Cannot read properties of null (reading 'useRef')" on every statically prerendered page. Disabling restores normal SWC transforms. https://claude.ai/code/session_014126WHVRT8mftmqkU6dajG --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 56b1ae2..e5e26e1 100644 --- a/next.config.js +++ b/next.config.js @@ -7,7 +7,7 @@ import "./src/env.js"; /** @type {import("next").NextConfig} */ const config = { output: "standalone", - reactCompiler: true, + reactCompiler: false, serverExternalPackages: ["pg", "better-auth"], };