Skip to content

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

fix: hide demo banner on staging

Marc Klingencc0c0c924601
diff --git a/src/components/layouts/layout.tsx b/src/components/layouts/layout.tsx
index a206ec63ea..192c4ead38 100644
--- a/src/components/layouts/layout.tsx
+++ b/src/components/layouts/layout.tsx
@@ -506,6 +506,8 @@ export default function Layout(props: PropsWithChildren) {
<div className="xl:pl-72">
{env.NEXT_PUBLIC_DEMO_PROJECT_ID &&
projectId === env.NEXT_PUBLIC_DEMO_PROJECT_ID &&
+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION &&
+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "STAGING" &&
!session.data?.user?.email?.endsWith("@langfuse.com") ? (
<div className="flex w-full items-center border-b border-yellow-500 bg-yellow-100 px-4 py-2 xl:sticky xl:top-0 xl:z-40">
<div className="flex flex-1 flex-wrap gap-1">