From 37e272b48d50530f0d6e3da1543e96c068939f49 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 7 May 2026 14:34:19 -0700 Subject: [PATCH] revert(ci): drop turbopackFileSystemCacheForBuild and restore actions/cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build times grew monotonically from ~200s to 1305s (~6x) after #4478 landed. The Turbopack FS cache flag combined with sticky-disk persistence caused unbounded cache growth. Reverting both — keeping the poweredByHeader and optimizePackageImports trim from the original PR. --- .github/workflows/test-build.yml | 8 +++++--- apps/sim/next.config.ts | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 4359fd261ea..68c5a9901de 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -44,11 +44,13 @@ jobs: key: ${{ github.repository }}-turbo-cache path: ./.turbo - - name: Mount Next.js build cache (Sticky Disk) - uses: useblacksmith/stickydisk@v1 + - name: Restore Next.js build cache + uses: actions/cache@v5 with: - key: ${{ github.repository }}-nextjs-cache path: ./apps/sim/.next/cache + key: ${{ runner.os }}-nextjs-${{ hashFiles('bun.lock') }} + restore-keys: | + ${{ runner.os }}-nextjs- - name: Install dependencies run: bun install --frozen-lockfile diff --git a/apps/sim/next.config.ts b/apps/sim/next.config.ts index 68ad3b37fa7..8d750b386e5 100644 --- a/apps/sim/next.config.ts +++ b/apps/sim/next.config.ts @@ -98,7 +98,6 @@ const nextConfig: NextConfig = { experimental: { optimizeCss: true, preloadEntriesOnStart: false, - turbopackFileSystemCacheForBuild: true, optimizePackageImports: [ 'lodash', 'framer-motion',