mirror of
https://github.com/hanzoai/turborepo.git
synced 2026-10-30 19:44:51 +00:00
## Why Next.js writes development server output to `.next/dev`, which can unnecessarily inflate Turborepo cache artifacts when examples cache `.next/**`. Excluding it keeps current Next.js output recommendations aligned with Next.js behavior and fixes #13018. ## What Adds `!.next/dev/**` to current Next.js `outputs` examples, docs, local app config, and bundled guidance that already exclude `.next/cache/**`. Historical blog posts and tests are left unchanged. ## How Verified with stale-pattern scans, `oxfmt --check`, targeted docs/config review, and pre-push hooks for format, TOML formatting, and Rust checks.
20 lines
387 B
JSON
20 lines
387 B
JSON
{
|
|
"$schema": "https://turborepo.dev/schema.json",
|
|
"ui": "tui",
|
|
"tasks": {
|
|
"build": {
|
|
"inputs": ["$TURBO_DEFAULT$", ".env*"],
|
|
"outputs": ["dist/**", ".next/**", "!.next/cache/**", "!.next/dev/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"lint": {},
|
|
"clean": {
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|