2026-07-23 06:24:10 +07:00
|
|
|
import type { NextConfig } from "next";
|
|
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
|
|
|
|
reactCompiler: true,
|
2026-07-23 15:02:53 +07:00
|
|
|
turbopack: {
|
|
|
|
|
root: process.cwd(),
|
|
|
|
|
},
|
2026-08-03 04:05:03 +07:00
|
|
|
// Nix store is read-only at runtime; Next.js tries to mkdir
|
|
|
|
|
// <distDir>/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,
|
|
|
|
|
},
|
2026-07-23 06:24:10 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|