diff --git a/next.config.ts b/next.config.ts index 324b07a..50f8b6f 100644 --- a/next.config.ts +++ b/next.config.ts @@ -5,6 +5,16 @@ const nextConfig: NextConfig = { turbopack: { root: process.cwd(), }, + // Nix store is read-only at runtime; Next.js tries to mkdir + // /cache/images for the on-disk image optimizer LRU and + // crashes with EACCES unhandledRejection on every optimized image + // request. Disable the disk cache (and disable ISR flush which gates it). + images: { + maximumDiskCacheSize: 0, + }, + experimental: { + isrFlushToDisk: false, + }, }; export default nextConfig;