From a18889acbad2dec614e9100e4e421f9d086d2ac4 Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Tue, 24 Mar 2026 11:42:59 +0100 Subject: [PATCH] retry --- apps/studio/next.config.js | 9 ++++++++- apps/studio/package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js index ff57e7d3594..02955a1b15d 100644 --- a/apps/studio/next.config.js +++ b/apps/studio/next.config.js @@ -600,6 +600,13 @@ const nextConfig = { }, }, }, + webpack: (config, { dev }) => { + // Lower webpack graph parallelism in production to reduce peak heap usage on CI builders. + if (!dev) { + config.parallelism = 20 + } + return config + }, onDemandEntries: { maxInactiveAge: 24 * 60 * 60 * 1000, pagesBufferLength: 100, @@ -609,7 +616,7 @@ const nextConfig = { // Make sure adding Sentry options is the last code to run before exporting, to // ensure that your source maps include changes from all other Webpack plugins module.exports = - process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.DISABLE_SENTRY_BUILD !== 'true' + process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.ENABLE_SENTRY_BUILD === 'true' ? withSentryConfig(withBundleAnalyzer(nextConfig), { silent: true, diff --git a/apps/studio/package.json b/apps/studio/package.json index 3301cffff4c..9ff99583df3 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -5,7 +5,7 @@ "scripts": { "preinstall": "npx only-allow pnpm", "dev": "next dev -p ${STUDIO_PORT:-8082}", - "build": "NODE_OPTIONS=\"${NODE_OPTIONS:---max-old-space-size=8192}\" next build --webpack && if [ \"$SKIP_ASSET_UPLOAD\" != \"1\" ]; then ./../../scripts/upload-static-assets.sh; fi", + "build": "NODE_OPTIONS=\"${NODE_OPTIONS:---max-old-space-size=12288}\" next build --webpack && if [ \"$SKIP_ASSET_UPLOAD\" != \"1\" ]; then ./../../scripts/upload-static-assets.sh; fi", "start": "next start -p 8082", "lint": "eslint .", "lint:ratchet": "tsx scripts/ratchet-eslint-rules.ts --rule react-hooks/exhaustive-deps --rule import/no-anonymous-default-export --rule @tanstack/query/exhaustive-deps --rule @typescript-eslint/no-explicit-any --rule no-restricted-imports --rule no-restricted-exports --rule react/no-unstable-nested-components",