Skip to content

Commit fadfb9d

Browse files
committed
Enable React Compiler across all Next.js apps
1 parent 34f9976 commit fadfb9d

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

apps/dashboard/next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const baseNextConfig: NextConfig = {
124124
webpackMemoryOptimizations: true,
125125
serverSourceMaps: false,
126126
taint: true,
127+
reactCompiler: true,
127128
},
128129
serverExternalPackages: ["pino-pretty"],
129130
async headers() {

apps/login/next.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
44
/* config options here */
5+
experimental: {
6+
reactCompiler: true,
7+
},
58
};
69

710
export default nextConfig;

apps/playground-web/next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const nextConfig = {
4545
webpackBuildWorker: true,
4646
webpackMemoryOptimizations: true,
4747
serverSourceMaps: false,
48+
reactCompiler: true,
4849
},
4950
async headers() {
5051
return [

apps/portal/next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const nextConfig = {
5555
webpackBuildWorker: true,
5656
webpackMemoryOptimizations: true,
5757
serverSourceMaps: false,
58+
reactCompiler: true,
5859
},
5960
pageExtensions: ["mdx", "tsx", "ts"],
6061
redirects,

apps/wallet-ui/next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const nextConfig = {
5454
webpackBuildWorker: true,
5555
webpackMemoryOptimizations: true,
5656
serverSourceMaps: false,
57+
reactCompiler: true,
5758
},
5859
webpack: (config) => {
5960
config.externals.push("pino-pretty", "lokijs", "encoding");

0 commit comments

Comments
 (0)