improvement(next): bundle and CI cache config#4478
Conversation
- drop redundant turbopack config (Next 16 defaults) - remove lucide-react/date-fns from optimizePackageImports (built-in defaults) - enable turbopackFileSystemCacheForBuild for warm CI builds - disable poweredByHeader - swap actions/cache for Blacksmith sticky disk on .next/cache
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Simplifies Updates CI ( Reviewed by Cursor Bugbot for commit ddb87ae. Configure here. |
Greptile SummaryThis PR cleans up now-redundant Next.js 16 Turbopack defaults (
Confidence Score: 5/5Safe to merge — changes are additive config cleanups with no logic changes, and the new stickydisk cache follows the same pattern already used by three other mounts in this job. Both files make targeted, well-justified changes: removing Turbopack config options that are now defaults in Next 16, enabling an experimental build cache flag that pairs correctly with the new CI stickydisk mount, and adding a minor security header. The stickydisk key pattern for No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[CI Job Starts] --> B[Mount Bun Cache\nSticky Disk]
B --> C[Mount node_modules\nSticky Disk]
C --> D[Mount Turbo Cache\nSticky Disk]
D --> E[Mount .next/cache\nSticky Disk NEW]
E --> F[bun install]
F --> G[Lint / Type-check / Tests]
G --> H[turbo run build --filter=sim]
H --> I{turbopackFileSystemCacheForBuild?}
I -- true NEW --> J[Write incremental build artifacts\nto .next/cache on Sticky Disk]
I -- false OLD --> K[Discard .next/cache]
J --> L[Subsequent CI run reuses warm cache]
K --> M[Cold build every run]
Reviews (1): Last reviewed commit: "improvement(next): bundle and CI cache c..." | Re-trigger Greptile |
- drop redundant turbopack config (Next 16 defaults) - remove lucide-react/date-fns from optimizePackageImports (built-in defaults) - enable turbopackFileSystemCacheForBuild for warm CI builds - disable poweredByHeader - swap actions/cache for Blacksmith sticky disk on .next/cache
Summary
lucide-react/date-fnsfromoptimizePackageImports(Next 16 built-in defaults)experimental.turbopackFileSystemCacheForBuildfor warm CI buildspoweredByHeaderactions/cachefor Blacksmith sticky disk on.next/cache(~3s mount, survives lockfile changes)Type of Change
Testing
Tested manually — built locally with Turbopack, ran experimental bundle analyzer to confirm
lucide-react/date-fnsare tree-shaken by default in Next 16.Checklist