mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
(fix) ui
This commit is contained in:
parent
aa55da8fdc
commit
cf41366653
1 changed files with 5 additions and 2 deletions
|
|
@ -8,6 +8,9 @@ import EnterProxyUrl from "./enter_proxy_url";
|
|||
import { useSearchParams } from "next/navigation";
|
||||
import { jwtDecode } from "jwt-decode";
|
||||
|
||||
const proxyBaseUrl = process.env.PROXY_BASE_URL || null;
|
||||
console.log("Proxy Base URL:", proxyBaseUrl);
|
||||
|
||||
const UserDashboard = () => {
|
||||
const [data, setData] = useState<null | any[]>(null); // Keep the initialization of state here
|
||||
// Assuming useSearchParams() hook exists and works in your setup
|
||||
|
|
@ -53,8 +56,8 @@ const UserDashboard = () => {
|
|||
|
||||
|
||||
// Now you can construct the full URL
|
||||
const url = `/sso/key/generate`;
|
||||
|
||||
const url = proxyBaseUrl ? `${proxyBaseUrl}/sso/key/generate` : `/sso/key/generate`;
|
||||
console.log("Full URL:", url);
|
||||
window.location.href = url;
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue