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

This reverts commit e4dfd1e239.
This commit is contained in:
yuneng-jiang 2026-01-27 19:18:09 -08:00
parent d1da3fed10
commit c2e7a002c7
2 changed files with 8 additions and 5 deletions

View file

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

View file

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