Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: show retention settings for self-hosters (#5727)

Steffen Schmitz85f4cb0c13d0
diff --git a/web/src/pages/project/[projectId]/settings/index.tsx b/web/src/pages/project/[projectId]/settings/index.tsx
index 1bf4a58e66..ce86d4b994 100644
--- a/web/src/pages/project/[projectId]/settings/index.tsx
+++ b/web/src/pages/project/[projectId]/settings/index.tsx
@@ -24,14 +24,13 @@ import { BatchExportsSettingsPage } from "@/src/features/batch-exports/component
import { AuditLogsSettingsPage } from "@/src/ee/features/audit-log-viewer/AuditLogsSettingsPage";
import { ModelsSettings } from "@/src/features/models/components/ModelSettings";
import ConfigureRetention from "@/src/features/projects/components/ConfigureRetention";
-import { env } from "@/src/env.mjs";
import ContainerPage from "@/src/components/layouts/container-page";
export default function SettingsPage() {
const { project, organization } = useQueryProject();
const router = useRouter();
const showBillingSettings = useHasEntitlement("cloud-billing");
- const isLangfuseCloud = Boolean(env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION);
+ const showRetentionSettings = useHasEntitlement("data-retention");
if (!project || !organization) return null;
return (
<ContainerPage
@@ -49,7 +48,7 @@ export default function SettingsPage() {
<div className="flex flex-col gap-6">
<HostNameProject />
<RenameProject />
- {isLangfuseCloud && <ConfigureRetention />}
+ {showRetentionSettings && <ConfigureRetention />}
<div>
<Header title="Debug Information" />
<JSONView