Files
beenvoice-web/next.config.js
T
soconnorandCursor 6ec26a4a0d Redesign marketing pages and isolate public routes from app auth.
Give the landing, legal, and sign-in flows a consistent product shell while keeping marketing pages free of tRPC/session calls, fixing dev auth URL handling, and refreshing env and deploy docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 02:00:06 -04:00

29 lines
891 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";
const isDockerBuild = process.env.DOCKER_BUILD === "1";
const disableReactCompiler = process.env.DISABLE_REACT_COMPILER === "1";
/** @type {import("next").NextConfig} */
const config = {
// React Compiler is helpful in dev/prod but adds compile-time memory pressure in Docker builds.
reactCompiler: !disableReactCompiler,
productionBrowserSourceMaps: false,
serverExternalPackages: ["pg", "better-auth"],
experimental: {
webpackMemoryOptimizations: true,
},
// Skip duplicate typecheck during Docker `next build` to lower peak memory.
// Lint separately via `bun run lint` / `bun run check`.
...(isDockerBuild
? {
typescript: { ignoreBuildErrors: true },
}
: {}),
};
export default config;