fix(ui): fix Next.js 15 build errors and remove deprecated config

- Replace <a> tags with <Link> 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
This commit is contained in:
Alexsander Hamir 2026-01-27 17:17:59 -08:00
parent f4dec24d08
commit e4dfd1e239
2 changed files with 5 additions and 8 deletions

View file

@ -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;

View file

@ -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<ModelDashboardProps> = ({
{currentTeam === "personal" ? (
<span>
To access these models: Create a Virtual Key without selecting a team on the{" "}
<a
<Link
href="/?login=success&page=api-keys"
className="text-gray-600 hover:text-gray-800 underline"
>
Virtual Keys page
</a>
</Link>
</span>
) : (
<span>
To access these models: Create a Virtual Key and select Team as &quot;
{currentTeam}&quot; on the{" "}
<a
<Link
href="/?login=success&page=api-keys"
className="text-gray-600 hover:text-gray-800 underline"
>
Virtual Keys page
</a>
</Link>
</span>
)}
</div>