mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-04 07:27:51 +00:00
* feat(lens): consume the independent Lens service and shared UI * fix(lens): keep embedded setup stable and vendor UI before builds * chore(lens): pin embedded UI provenance to published Lens source * fix(lens): complete embedded UI extraction across CI builds * docs(lens): record latest main and removal-boundary validation * fix(lens): wire external chart credentials and ingestion modes * test(lens): cover adapter failures and fix extraction CI * docs(lens): refresh bundled chart setup instructions * test(lens): restore gateway adapter test package marker * build(lens): pin clean-cut UI and supported storage chart * test(ui): await guardrail scope menu before checking options * perf(lens): omit unused trace-team lookup from product requests * docs(lens): record final-image adapter permission checks * test(lens): assert delegated investigation authorization * refactor(lens): remove copied trace runtime and preserve spend logging * test(lens): verify independent gateway image upgrades and outages * test(lens): pin the chart qualification database image * fix(lens): update embedded UI metadata filters * test: wait for Lens chart pod identity convergence * fix(e2e): select Lens chart pods by deployment ownership * fix(e2e): select Helm migration ownership for Lens upgrades * test(lens): retain migration Jobs through rollout assertions * docs(helm): require existing database for migration hooks * test(lens): qualify release boundaries with embedded navigation update * docs(lens): record browser qualification for embedded tabs * fix(lens): remove unrelated CI and guardrail test changes * test(lens): give qualification tenants unique key aliases * feat(lens): embed the latest canonical Lens interface * fix(lens): qualify split inference through the gateway * fix(lens): preserve scoped auth and isolate delegated credentials * chore(lens): remove unrelated documentation and lint changes * fix(lens): bound concurrent forwarding buffers through response delivery * fix(lens): preserve OAuth2 dispatch without inference policies * chore(lens): adopt current shared onboarding UI * fix(lens): refresh shared setup UI and review context * fix(lens): bound uploads before gateway authentication * docs(lens): remove extraction evidence from the gateway repo * docs(lens): refresh shared setup prompt for paired releases
54 lines
1.7 KiB
JavaScript
54 lines
1.7 KiB
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 devProxyUrl = process.env.LENS_DEV_PROXY_URL;
|
|
|
|
const nextConfig = {
|
|
transpilePackages: ["@litellm/lens-ui"],
|
|
...(devProxyUrl
|
|
? {
|
|
async rewrites() {
|
|
return {
|
|
beforeFiles: [
|
|
// Every dashboard HTTP client sends Accept: application/json; page loads and RSC
|
|
// fetches do not. That is what keeps GET /lens (API) apart from /lens (page) in dev.
|
|
{
|
|
source: "/:path*",
|
|
has: [{ type: "header", key: "accept", value: "application/json.*" }],
|
|
destination: `${devProxyUrl}/:path*`,
|
|
},
|
|
{ source: "/ui/:path*", destination: "/:path*" },
|
|
],
|
|
fallback: [{ source: "/:path*", destination: `${devProxyUrl}/:path*` }],
|
|
};
|
|
},
|
|
}
|
|
: {}),
|
|
output: devProxyUrl ? undefined : "export",
|
|
typescript: { tsconfigPath: "tsconfig.production.json" },
|
|
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: !devProxyUrl,
|
|
skipTrailingSlashRedirect: Boolean(devProxyUrl),
|
|
turbopack: {
|
|
// Must be absolute; "." is no longer allowed
|
|
root: __dirname,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|