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
This commit is contained in:
Claude
2026-06-11 15:47:48 +00:00
parent 7a6e255325
commit 17971f2a98
+1 -1
View File
@@ -7,7 +7,7 @@ import "./src/env.js";
/** @type {import("next").NextConfig} */
const config = {
output: "standalone",
reactCompiler: true,
reactCompiler: false,
serverExternalPackages: ["pg", "better-auth"],
};