🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat(cloud): add banner for status page announcement (#4988)
Marc Klingenaf276e9e7893
diff --git a/web/next.config.mjs b/web/next.config.mjsindex 9cc0590f38..9ffd567b3c 100644--- a/web/next.config.mjs+++ b/web/next.config.mjs@@ -12,8 +12,8 @@ import { env } from "./src/env.mjs";*/const cspHeader = `default-src 'self' https://*.langfuse.com https://*.langfuse.dev https://*.posthog.com https://*.sentry.io wss://*.crisp.chat https://*.crisp.chat;- script-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.langfuse.com https://*.langfuse.dev https://client.crisp.chat https://settings.crisp.chat https://challenges.cloudflare.com https://*.sentry.io https://static.cloudflareinsights.com https://*.stripe.com;- style-src 'self' 'unsafe-inline' https://client.crisp.chat;+ script-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.langfuse.com https://*.langfuse.dev https://client.crisp.chat https://settings.crisp.chat https://challenges.cloudflare.com https://*.sentry.io https://static.cloudflareinsights.com https://*.stripe.com https://uptime.betterstack.com;+ style-src 'self' 'unsafe-inline' https://client.crisp.chat https://uptime.betterstack.com;img-src 'self' https: blob: data: http://localhost:* https://client.crisp.chat https://image.crisp.chat https://storage.crisp.chat;font-src 'self' https://client.crisp.chat;frame-src 'self' https://challenges.cloudflare.com https://*.stripe.com https://game.crisp.chat;@@ -22,7 +22,7 @@ const cspHeader = `base-uri 'self';form-action 'self';frame-ancestors 'none';- connect-src 'self' https://*.langfuse.com https://*.langfuse.dev https://client.crisp.chat https://storage.crisp.chat wss://client.relay.crisp.chat wss://stream.relay.crisp.chat https://*.ingest.us.sentry.io;+ connect-src 'self' https://*.langfuse.com https://*.langfuse.dev https://client.crisp.chat https://storage.crisp.chat wss://client.relay.crisp.chat wss://stream.relay.crisp.chat https://*.ingest.us.sentry.io https://uptime.betterstack.com;media-src 'self' https: http://localhost:* https://client.crisp.chat;${env.LANGFUSE_CSP_ENFORCE_HTTPS === "true" ? "upgrade-insecure-requests; block-all-mixed-content;" : ""}${env.SENTRY_CSP_REPORT_URI ? `report-uri ${env.SENTRY_CSP_REPORT_URI}; report-to csp-endpoint;` : ""}diff --git a/web/src/pages/_app.tsx b/web/src/pages/_app.tsxindex 03b2822ee0..3f40d7a59b 100644--- a/web/src/pages/_app.tsx+++ b/web/src/pages/_app.tsx@@ -109,6 +109,7 @@ const MyApp: AppType<{ session: Session | null }> = ({<Component {...pageProps} /><UserTracking /></Layout>+ <BetterStackUptimeStatusMessage /></ThemeProvider></MarkdownContextProvider><CrispWidget />@@ -248,3 +249,15 @@ if (return await shutdown(signal);});}++function BetterStackUptimeStatusMessage() {+ if (!env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION) return null;+ return (+ <script+ src="https://uptime.betterstack.com/widgets/announcement.js"+ data-id="189328"+ async={true}+ type="text/javascript"+ ></script>+ );+}diff --git a/web/src/styles/globals.css b/web/src/styles/globals.cssindex a9f22a1096..a6a9524b30 100644--- a/web/src/styles/globals.css+++ b/web/src/styles/globals.css@@ -152,7 +152,6 @@html,body,- body>div:first-child,div#__next,div#__next>div {height: 100%;