Files
beenvoice/next.config.js
T
Claude 17971f2a98 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
2026-06-11 15:47:48 +00:00

15 lines
337 B
JavaScript

/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env.js";
/** @type {import("next").NextConfig} */
const config = {
output: "standalone",
reactCompiler: false,
serverExternalPackages: ["pg", "better-auth"],
};
export default config;