diff --git a/next.config.js b/next.config.js index 368bbf1..563f6bf 100644 --- a/next.config.js +++ b/next.config.js @@ -7,6 +7,10 @@ const nextConfig = { htmlLimitedBots: /.*/, // React Compiler (پایدار در Next 16) — memoization خودکار کامپوننت‌ها. reactCompiler: true, + // نکته: cacheComponents فعال نشد. معماری multi-domain به headers() (هدر host) در + // layout و generateMetadata وابسته است؛ با cacheComponents هر دسترسی uncached به + // headers() باید داخل بسته شود (build روی /_not-found شکست خورد). این کار + // نیازمند Suspenseگذاری گسترده و ریسک نشت محتوای شهر بین دامنه‌هاست — فعلاً امن نیست. images: { remotePatterns: [ {