From c2e7a002c73003caa831dc6204e276d80be1aa9e Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Tue, 27 Jan 2026 19:18:09 -0800 Subject: [PATCH] Revert "fix(ui): fix Next.js 15 build errors and remove deprecated config" This reverts commit e4dfd1e23915402789ac33fb7433a8bde8518c06. --- ui/litellm-dashboard/next.config.mjs | 4 ++++ .../src/components/templates/model_dashboard.tsx | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ui/litellm-dashboard/next.config.mjs b/ui/litellm-dashboard/next.config.mjs index fbb8f074e7a..f3083c5e802 100644 --- a/ui/litellm-dashboard/next.config.mjs +++ b/ui/litellm-dashboard/next.config.mjs @@ -5,4 +5,8 @@ const nextConfig = { assetPrefix: "/litellm-asset-prefix", // If a server_root_path is set, this will be overridden by runtime injection }; +nextConfig.experimental = { + missingSuspenseWithCSRBailout: false, +}; + export default nextConfig; diff --git a/ui/litellm-dashboard/src/components/templates/model_dashboard.tsx b/ui/litellm-dashboard/src/components/templates/model_dashboard.tsx index d83c03136f0..e4dc896f55d 100644 --- a/ui/litellm-dashboard/src/components/templates/model_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/templates/model_dashboard.tsx @@ -13,7 +13,6 @@ import { Title, } from "@tremor/react"; import React, { useEffect, useMemo, useRef, useState } from "react"; -import Link from "next/link"; import { CredentialItem, credentialListCall, CredentialsResponse } from "../networking"; import { handleAddModelSubmit } from "../add_model/handle_add_model_submit"; @@ -1139,23 +1138,23 @@ const OldModelDashboard: React.FC = ({ {currentTeam === "personal" ? ( To access these models: Create a Virtual Key without selecting a team on the{" "} - Virtual Keys page - + ) : ( To access these models: Create a Virtual Key and select Team as " {currentTeam}" on the{" "} - Virtual Keys page - + )}