From e4dfd1e23915402789ac33fb7433a8bde8518c06 Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Tue, 27 Jan 2026 17:17:59 -0800 Subject: [PATCH] fix(ui): fix Next.js 15 build errors and remove deprecated config - Replace tags with from next/link for internal navigation in model_dashboard.tsx - Remove deprecated missingSuspenseWithCSRBailout experimental config option Fixes ESLint errors preventing production build in Next.js 15 --- ui/litellm-dashboard/next.config.mjs | 4 ---- .../src/components/templates/model_dashboard.tsx | 9 +++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ui/litellm-dashboard/next.config.mjs b/ui/litellm-dashboard/next.config.mjs index f3083c5e802..fbb8f074e7a 100644 --- a/ui/litellm-dashboard/next.config.mjs +++ b/ui/litellm-dashboard/next.config.mjs @@ -5,8 +5,4 @@ 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 e4dc896f55d..d83c03136f0 100644 --- a/ui/litellm-dashboard/src/components/templates/model_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/templates/model_dashboard.tsx @@ -13,6 +13,7 @@ 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"; @@ -1138,23 +1139,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 - + )}