feat: enable React Compiler on Next 16

Auto-memoization via babel-plugin-react-compiler (stable in Next 16),
compiled through Turbopack's built-in babel. Build and test suite pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-06 10:02:58 +03:30
co-authored by Claude Fable 5
parent 374a9d5350
commit 08dd9e408b
3 changed files with 14 additions and 0 deletions
+2
View File
@@ -5,6 +5,8 @@ const nextConfig = {
// متادیتا (canonical/OG/keywords) باید داخل <head> رندر شود نه استریم در <body>.
// از Next 15.2 استریم متادیتا پیش‌فرض است؛ این regex همه‌ی UAها را blocking می‌کند.
htmlLimitedBots: /.*/,
// React Compiler (پایدار در Next 16) — memoization خودکار کامپوننت‌ها.
reactCompiler: true,
images: {
remotePatterns: [
{