🪢 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(self-host): LANGFUSE_INIT_USER_EMAIL lowercased for headless initialization (#3754)
Marc Klingen74819a1d1ff3
diff --git a/web/src/initialize.ts b/web/src/initialize.tsindex f7e694686a..1ff358f395 100644--- a/web/src/initialize.ts+++ b/web/src/initialize.ts@@ -65,8 +65,9 @@ if (env.LANGFUSE_INIT_ORG_ID) {// Create User: Org -> Userif (env.LANGFUSE_INIT_USER_EMAIL && env.LANGFUSE_INIT_USER_PASSWORD) {+ const email = env.LANGFUSE_INIT_USER_EMAIL.toLowerCase();const existingUser = await prisma.user.findUnique({- where: { email: env.LANGFUSE_INIT_USER_EMAIL },+ where: { email },});let userId = existingUser?.id;@@ -74,7 +75,7 @@ if (env.LANGFUSE_INIT_ORG_ID) {// Create user if it doesn't exist yetif (!userId) {userId = await createUserEmailPassword(- env.LANGFUSE_INIT_USER_EMAIL,+ email,env.LANGFUSE_INIT_USER_PASSWORD,env.LANGFUSE_INIT_USER_NAME ?? "Provisioned User",);