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:
+1
-1
@@ -7,7 +7,7 @@ import "./src/env.js";
|
||||
/** @type {import("next").NextConfig} */
|
||||
const config = {
|
||||
output: "standalone",
|
||||
reactCompiler: true,
|
||||
reactCompiler: false,
|
||||
serverExternalPackages: ["pg", "better-auth"],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user