Add 'apps/web/' from commit '1e7174fa604b11e7c3983cd8ad01c596f6e77e96'

git-subtree-dir: apps/web
git-subtree-mainline: 068a51b46b
git-subtree-split: 1e7174fa60
This commit is contained in:
2026-08-16 21:42:59 -04:00
350 changed files with 62192 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
/**
* 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;