diff --git a/next.config.ts b/next.config.ts index 544a2ef4..3f721aef 100644 --- a/next.config.ts +++ b/next.config.ts @@ -167,6 +167,21 @@ const nextConfig: NextConfig = { formats: ["image/avif", "image/webp"], }, + // The SWF/Nitro image pipeline (src/lib/services/swf, src/lib/services/image-*) + // pulls shared helpers into several server chunks that webpack reports as a + // circular dependency between chunks with runtime. The cycle only affects + // server-side module caching of already-loaded chunks and has no runtime + // impact, so suppress the noisy warning instead of refactoring the shared + // helpers (which would risk the hot image path). Revisit if a real deadlock + // appears. + webpack(config) { + config.ignoreWarnings = [ + ...(config.ignoreWarnings ?? []), + /Circular dependency between chunks with runtime/, + ]; + return config; + }, + async headers() { return [ {