litellm/ui/litellm-dashboard
mubashir1osmani cab5fb75af fix(ui): bake /ui basePath so sidebar navigation is client-side
The dashboard is a static export served under /ui, but it was built
with basePath "" and every href manually prefixed via uiHref(). To
next/link those hrefs look external, so each sidebar click was a full
browser navigation: providers remounted and every endpoint refetched.

Set basePath to /ui (UI_BASE_PATH still overrides it, which
build_ui_custom_path.sh passes for server_root_path deployments; that
env var was previously ignored by the config). Link hrefs and
router.push targets become app-relative, the router prepends the base
itself and navigations use the exported RSC payloads instead of
reloading. uiHref() remains for raw <a> and window.location targets,
and appHrefFromUiHref() strips the base before router.push for hrefs
built that way. Login-page redirects that carry browser-absolute
return URLs move to window.location so the basePath-aware router does
not double-prefix them.

No proxy changes: the /ui StaticFiles mount already serves the
per-route index.html and __next.*.txt payloads.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-18 00:00:00 -04:00
..
public feat(guardrails): add Conduct Guard integration with validated hooks and forwarded params (#40785) 2026-09-12 10:04:55 -07:00
scripts fix(ui): lint z-index utilities behind arbitrary Tailwind variants 2026-08-25 17:34:45 -07:00
src fix(ui): bake /ui basePath so sidebar navigation is client-side 2026-09-18 00:00:00 -04:00
tests test(ui): stub the Virtual Keys dashboard in the expired-token page test 2026-09-05 17:57:38 -07:00
.env.development
.env.production
.npmrc chore(build): move the Admin UI toolchain to Node 24 (#35801) 2026-08-04 12:36:07 -07:00
.nvmrc chore(build): move the Admin UI toolchain to Node 24 (#35801) 2026-08-04 12:36:07 -07:00
.prettierignore
.prettierrc
build_release_ui.sh
build_ui.sh chore(build): move the Admin UI toolchain to Node 24 (#35801) 2026-08-04 12:36:07 -07:00
build_ui_custom_path.sh chore(build): move the Admin UI toolchain to Node 24 (#35801) 2026-08-04 12:36:07 -07:00
CLAUDE.md refactor(ui): type search tool params from the generated schema (#38633) 2026-08-28 10:03:35 -07:00
components.json refactor(ui): switch shadcn primitives from Radix to Base UI (#32124) 2026-07-07 09:55:41 -07:00
eslint-budgets.json refactor(ui): render the Virtual Keys page without the legacy user dashboard 2026-09-05 17:49:29 -07:00
eslint-suppressions.json chore(ui): prune stale eslint suppressions for projects page 2026-09-16 16:12:48 -07:00
eslint.config.mjs test(ui): budget DOM-structure assertions in dashboard tests 2026-09-01 00:13:05 -07:00
knip.json fix(ui): register type-test files as knip entry points 2026-08-10 15:42:09 -07:00
next.config.mjs fix(ui): bake /ui basePath so sidebar navigation is client-side 2026-09-18 00:00:00 -04:00
package-lock.json chore(ui): bump smol-toml to fix GHSA-7w5x-hrqm-74c2 osv-scan failure 2026-09-10 00:46:54 +00:00
package.json fix(ui): align SDK mocks and remaining dependency patches 2026-09-08 16:03:34 -07:00
postcss.config.js feat(ui): shadcn migration foundation: Tailwind v4, shadcn init, antd cascade fix (#31995) 2026-07-02 19:02:27 -07:00
README.md
tsconfig.json test(e2e): move Admin UI Playwright suite to tests/e2e/ui (#34196) 2026-07-22 19:43:10 +00:00
tsconfig.tsbuildinfo fix(auto_router): clear the non-reasoning tier when the classifier changes 2026-09-08 12:30:42 -07:00
vitest.config.ts test(ui): split the vitest suite into unit, component, integration and type projects (#37488) 2026-08-19 20:40:14 +00:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.