Skip to content

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

feat(cloud): include data region in project invite emails

Marc Klingen9b3a1f3af3bb
diff --git a/web/src/features/email/lib/project-invitation.ts b/web/src/features/email/lib/project-invitation.ts
index e904708ab2..f1eaf87bf1 100644
--- a/web/src/features/email/lib/project-invitation.ts
+++ b/web/src/features/email/lib/project-invitation.ts
@@ -41,6 +41,7 @@ export const sendProjectInvitation = async (
projectName: projectName,
recieverEmail: to,
inviteLink: authUrl,
+ langfuseCloudRegion: env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION,
}),
);
diff --git a/web/src/features/email/templates/ProjectInvitation.tsx b/web/src/features/email/templates/ProjectInvitation.tsx
index d29df7a5ec..7a7f7c4541 100644
--- a/web/src/features/email/templates/ProjectInvitation.tsx
+++ b/web/src/features/email/templates/ProjectInvitation.tsx
@@ -23,6 +23,7 @@ interface ProjectInvitationTemplateProps {
projectName: string;
recieverEmail: string;
inviteLink: string;
+ langfuseCloudRegion?: string;
}
export const ProjectInvitationTemplate = ({
@@ -31,6 +32,7 @@ export const ProjectInvitationTemplate = ({
projectName,
recieverEmail,
inviteLink,
+ langfuseCloudRegion,
}: ProjectInvitationTemplateProps) => {
const previewText = `Join ${invitedByUsername} on Langfuse`;
@@ -63,7 +65,10 @@ export const ProjectInvitationTemplate = ({
{invitedByUserEmail}
</Link>
) has invited you to the <strong>{projectName}</strong> project on
- Langfuse.
+ {langfuseCloudRegion
+ ? ` Langfuse (${langfuseCloudRegion} data region)`
+ : " Langfuse"}
+ .
</Text>
<Section className="mb-4 mt-8 text-center">
<Button