mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
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:
parent
f4dec24d08
commit
e4dfd1e239
2 changed files with 5 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 "
|
||||
{currentTeam}" 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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue