Files
santifer--career-ops/web/next.config.mjs
T
wehub-resource-sync d083df1fdb
CodeQL Analysis / Analyze (javascript-typescript) (push) Failing after 2s
Web CI / web typecheck + build (push) Failing after 1s
Release Please / release-please (push) Failing after 1s
CodeQL Analysis / Analyze (go) (push) Failing after 16s
chore: import upstream snapshot with attribution
2026-07-13 12:02:43 +08:00

14 lines
659 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// Two lockfiles exist on purpose (repo root + web/), so Next would infer the
// repo root as the workspace root. On Windows that misinference can send
// Turbopack's postcss workers into an unbounded respawn loop that exhausts
// all RAM (vercel/next.js#92978) — pin the root to this app.
turbopack: { root: import.meta.dirname },
// Allow a throwaway build dir (e.g. BUILD_DIST=.next-prod) so a production
// `next build` can run without clobbering a live `next dev` .next.
...(process.env.BUILD_DIST ? { distDir: process.env.BUILD_DIST } : {}),
};
export default nextConfig;