Skip to content

Commit d2db823

Browse files
committed
fix: enable react compiler only in production environment to keep dev env fast
1 parent 503d266 commit d2db823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const baseConfig: NextConfig = {
1111
},
1212
poweredByHeader: false,
1313
reactStrictMode: true,
14-
reactCompiler: true,
14+
reactCompiler: process.env.NODE_ENV === 'production', // Keep the development environment fast
1515
outputFileTracingIncludes: {
1616
'/': ['./migrations/**/*'],
1717
},

0 commit comments

Comments
 (0)