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