Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ const withMDX = createMDX();
const config = {
reactStrictMode: true,
output: 'standalone',
experimental: {
// The docs site prerenders 400+ MDX pages. Next spawns one static-generation
// worker per CPU, and on Vercel's high-core build container that fan-out
// multiplied the resident set until the build was OOM-killed (exit 137).
// Cap the worker count so peak memory stays well under the container limit.
cpus: 2,
},
typescript: {
ignoreBuildErrors: false,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"scripts": {
"dev": "next dev",
"build": "pnpm --filter @objectstack/spec gen:schema && pnpm --filter @objectstack/spec gen:docs && next build",
"build": "pnpm --filter @objectstack/spec gen:schema && pnpm --filter @objectstack/spec gen:docs && NODE_OPTIONS='--max-old-space-size=4096' next build",
"site:start": "next start",
"site:lint": "next lint",
"types:check": "fumadocs-mdx && next typegen && tsc --noEmit",
Expand Down