Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

chore(ui): preserve console.warn in prod builds to match lint allow-list

Yuneng Jiang68d52ac25149
diff --git a/ui/litellm-dashboard/next.config.mjs b/ui/litellm-dashboard/next.config.mjs
index 9cfddfd33ca..876df2b49cf 100644
--- a/ui/litellm-dashboard/next.config.mjs
+++ b/ui/litellm-dashboard/next.config.mjs
@@ -8,7 +8,7 @@ const __dirname = path.dirname(__filename);
const nextConfig = {
output: "export",
compiler: {
- removeConsole: process.env.NODE_ENV === "production" ? { exclude: ["error"] } : false,
+ removeConsole: process.env.NODE_ENV === "production" ? { exclude: ["error", "warn"] } : false,
},
// Required with output: "export" — default image optimizer runs only in server mode.
// See https://nextjs.org/docs/messages/export-image-api