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
15 lines
337 B
JavaScript
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;
|