litellm/ui/litellm-dashboard/next.config.mjs

30 lines
801 B
JavaScript

import path from "path";
import { fileURLToPath } from "url";
/** @type {import('next').NextConfig} */
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const nextConfig = {
output: "export",
experimental: {
useTypeScriptCli: false,
},
compiler: {
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
images: {
unoptimized: true,
},
basePath: "",
assetPrefix: "/litellm-asset-prefix",
trailingSlash: true,
turbopack: {
// Must be absolute; "." is no longer allowed
root: __dirname,
},
};
export default nextConfig;