🪢 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
fix: auth url on Langfuse Cloud
Marc Klingen88f96a37c161
diff --git a/src/features/email/lib/project-invitation.ts b/src/features/email/lib/project-invitation.tsindex 318928b1f0..2e47f5d326 100644--- a/src/features/email/lib/project-invitation.ts+++ b/src/features/email/lib/project-invitation.ts@@ -2,6 +2,16 @@ import { env } from "@/src/env.mjs";import { createTransport } from "nodemailer";import { parseConnectionUrl } from "nodemailer/lib/shared/index.js";+const langfuseUrls = {+ US: "https://us.cloud.langfuse.com",+ EU: "https://cloud.langfuse.com",+ STAGING: "https://staging.cloud.langfuse.com",+};++const authUrl = env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION+ ? langfuseUrls[env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION]+ : env.NEXTAUTH_URL;+export const sendProjectInvitation = async (to: string,inviterName: string,@@ -26,7 +36,7 @@ export const sendProjectInvitation = async (subject: `${inviterName} invited you to join "${projectName}"`,html: `<p>${inviterName} invited you to join "${projectName}" on Langfuse.</p>- <p><a href="${env.NEXTAUTH_URL}">Accept Invitation</a> (you need to create an account)</p>+ <p><a href="${authUrl}">Accept Invitation</a> (you need to create an account)</p>`,});} catch (error) {