[backport] Disable build caches for production/staging/force-preview deploys#93589
Conversation
Failing test suitesCommit: 2979bb0 | About building and testing Next.js
Expand output● server-navigation-error › middleware › should error on navigation API redirect
Expand output● create-next-app --app (App Router) › should create TailwindCSS project with --tailwind flag ● create-next-app --app (App Router) › should create an empty TailwindCSS project with --empty flag ... truncated ...
Expand output● Next Lint › First Time Setup › installs eslint and eslint-config-next as devDependencies if missing with yarn ● Next Lint › First Time Setup › installs eslint and eslint-config-next as devDependencies if missing with pnpm ● Next Lint › First Time Setup › creates .eslintrc.json file with a default configuration ● Next Lint › First Time Setup › creates .eslintrc.json file with a default app router configuration ● Next Lint › First Time Setup › shows a successful message when completed
Expand output● create-next-app --no-app (Pages Router) › should create TailwindCSS project with --tailwind flag ● create-next-app --no-app (Pages Router) › should create an empty TailwindCSS project with --empty flag
Expand output● segment cache prefetch scheduling › prefetches a dynamic page (without PPR enabled)
Expand output● create-next-app --no-app (Pages Router) › should create TailwindCSS project with --tailwind flag ... truncated ...
Expand output● create-next-app --app (App Router) › should create TailwindCSS project with --tailwind flag ● create-next-app --app (App Router) › should create an empty TailwindCSS project with --empty flag ... truncated ...
... truncated to fit in one GitHub comment ... |
b74a556 to
d2a7f50
Compare
16e6435 to
8d38d74
Compare
…2792) Set `NEXT_SKIP_BUILD_CACHE=1` as a job-level env var for production, staging, and force-preview deploy targets. Each caching step checks this var: - **Rust cache** (`ijjk/rust-cache`) — skipped - **Native binary cache** (`native-cache.js` restore/save) — skipped - **Turbo remote cache** — not passed to Docker builds; set to `local` for non-Docker builds - **sccache** — env vars not passed to Docker builds Automated-preview builds (PRs) continue to use all caches as before. <!-- NEXT_JS_LLM_PR -->
Fixes the turbo cache flag from `--cache=local` (invalid) to `--force`. Follow-up to #92792.
8d38d74 to
2979bb0
Compare
Backports #92792 and #92796
Full build: https://github.com/vercel/next.js/actions/runs/25490120159