diff --git a/next.config.mjs b/next.config.mjs index 6579620b2..cf137663e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -27,12 +27,13 @@ const nextConfig = { images: { remotePatterns }, + reactCompiler: true, // Required to run in a codespace (see https://github.com/vercel/next.js/issues/58019) experimental: { serverActions: { - allowedOrigins: ['localhost:3000'], + allowedOrigins: ['localhost:3000'], }, -}, + }, } export default withNextIntl(nextConfig) diff --git a/package-lock.json b/package-lock.json index 17f239100..491ed2920 100644 --- a/package-lock.json +++ b/package-lock.json @@ -79,6 +79,7 @@ "@types/react-dom": "^18.2.18", "@types/uuid": "^9.0.6", "autoprefixer": "^10", + "babel-plugin-react-compiler": "^1.0.0", "currency-list": "^1.0.8", "dotenv": "^16.3.1", "eslint": "^9.39.1", @@ -4135,7 +4136,7 @@ "version": "7.25.9", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", - "dev": true, + "devOptional": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -4145,7 +4146,7 @@ "version": "7.25.9", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", - "dev": true, + "devOptional": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -4471,7 +4472,7 @@ "version": "7.27.0", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", @@ -11433,6 +11434,16 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/babel-plugin-react-compiler": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-react-compiler/-/babel-plugin-react-compiler-1.0.0.tgz", + "integrity": "sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.26.0" + } + }, "node_modules/babel-preset-current-node-syntax": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", diff --git a/package.json b/package.json index 0d96648ae..af5dd4487 100644 --- a/package.json +++ b/package.json @@ -87,6 +87,7 @@ "@types/react-dom": "^18.2.18", "@types/uuid": "^9.0.6", "autoprefixer": "^10", + "babel-plugin-react-compiler": "^1.0.0", "currency-list": "^1.0.8", "dotenv": "^16.3.1", "eslint": "^9.39.1",