Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ You can also set credentials with environment variables:
```bash
export LANGFUSE_PUBLIC_KEY="pk-lf-..."
export LANGFUSE_SECRET_KEY="sk-lf-..."
export LANGFUSE_BASEURL="https://cloud.langfuse.com"
export LANGFUSE_BASE_URL="https://cloud.langfuse.com"
export LANGFUSE_ENVIRONMENT="development"
export LANGFUSE_USER_ID="your-user-id"
```
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ const loadLangfuseCredentials = Effect.gen(function* () {
return {
publicKey,
secretKey,
baseUrl: process.env.LANGFUSE_BASEURL,
// Prefer the canonical name while retaining the legacy name for semver compatibility.
baseUrl: process.env.LANGFUSE_BASE_URL ?? process.env.LANGFUSE_BASEURL,
environment: process.env.LANGFUSE_ENVIRONMENT,
userId: process.env.LANGFUSE_USER_ID,
} satisfies LangfuseCredentials;
Expand Down Expand Up @@ -281,6 +282,8 @@ const main = Effect.gen(function* () {

const baseUrl =
credentials.baseUrl ??
// Prefer the canonical name while retaining the legacy name for semver compatibility.
process.env.LANGFUSE_BASE_URL ??
process.env.LANGFUSE_BASEURL ??
"https://cloud.langfuse.com";

Expand Down