Skip to content
Important
Security Advisory: CVE-2025-66478
Find out more
Configurationnext.config.jsturbopackFileSystemCache

Turbopack FileSystem Caching

Last updated October 10, 2025

Usage

Turbopack FileSystem Cache enables Turbopack to reduce work across next dev or next build commands. When enabled, Turbopack will save and restore data to the .next folder between builds, which can greatly speed up subsequent builds and dev sessions.

Good to know: The FileSystem Cache feature is considered stable for development and experimental for production builds

next.config.ts
import type { NextConfig } from 'next'
 
const nextConfig: NextConfig = {
  experimental: {
    // Enable filesystem caching for `next dev`
    turbopackFileSystemCacheForDev: true,
    // Enable filesystem caching for `next build`
    turbopackFileSystemCacheForBuild: true,
  },
}
 
export default nextConfig

Version Changes

VersionChanges
v16.1.0FileSystem caching is enabled by default for development
v16.0.0Beta release with separate flags for build and dev
v15.5.0Persistent caching released as experimental on canary releases

Was this helpful?

supported.