From cc80771835b2955b3034066232b29b4971c104f8 Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Sat, 14 Mar 2026 21:29:18 -0700 Subject: [PATCH] Cache Next.js build cache for ui_build job Add restore_cache/save_cache for .next/cache to eliminate the "No build cache found" warning and speed up subsequent Next.js builds. Co-Authored-By: Claude Opus 4.6 --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8be5498e0f..6b7fba9128 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4029,6 +4029,10 @@ jobs: keys: - ui-build-deps-v1-{{ checksum "ui/litellm-dashboard/package-lock.json" }} - ui-build-deps-v1- + - restore_cache: + keys: + - ui-nextjs-cache-v1-{{ checksum "ui/litellm-dashboard/package-lock.json" }} + - ui-nextjs-cache-v1- - run: name: Install dependencies command: | @@ -4043,6 +4047,10 @@ jobs: command: | cd ui/litellm-dashboard source ./build_ui.sh + - save_cache: + key: ui-nextjs-cache-v1-{{ checksum "ui/litellm-dashboard/package-lock.json" }} + paths: + - ui/litellm-dashboard/.next/cache - persist_to_workspace: root: . paths: