Next.js Daily: Hash Salting and Turbopack Improvements
The Next.js team merged 17 pull requests on April 2nd, introducing a new NEXT_HASH_SALT environment variable for content-addressed filenames and fixing a critical Turbopack deadlock. Additional updates include adapter improvements and test stability fixes.
Duration: PT2M2S
Transcript
Good morning. This is Next.js Daily for April 2nd, 2026.
Sokra merged a significant feature adding NEXT_HASH_SALT environment variable for content-hash filename salting. This allows developers to force all filenames to rotate after CDN misconfigurations without touching source code. The implementation works for both Webpack and Turbopack, with an optional experimental.outputHashSalt config option that concatenates with the environment variable.
Sokra also fixed a critical DashMap deadlock in Turbopack's task_cache that was causing builds to hang during incremental builds with persistent caching. The issue involved read locks being held too long during cache operations.
Zack Tanner merged partial fallbacks adapter support for intermediate shells, relaxing guards to allow adapters to produce shells for partially known route parameters instead of requiring all dynamic params to be concrete.
Luke Sandberg optimized StaticSortedFile lookup by removing unnecessary loops, achieving up to 5% performance improvements in read operations. He also streamlined Turbopack's cache busting to use a single query parameter instead of multiple.
Several test stability improvements were merged. Eps1lon skipped flaky cached-navigations and prefetch-layout-sharing tests, and deflaked the allowed-dev-origins test suite.
Documentation updates included Joseph's guide for local images referenced by remote sources, and corrections to adapter testing examples with proper TypeScript types.
JJ Kasper added telemetry tracking for adapterPath config usage and clarified documentation for STATIC_FILE adapter output properties.
Benjamin Woodruff added CLI warnings for developers using Rosetta 2 on Apple Silicon, helping identify potential performance issues.
What's next: The team continues focusing on Turbopack performance optimizations and test stability improvements. The new hash salting feature provides deployment teams better cache control options.
That's your Next.js update for April 2nd.