🪢 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
chore(deps-dev): bump @typescript-eslint/parser from 7.6.0 to 7.7.0 (#1750)
dependabot[bot]ea5617d621b0
diff --git a/ee/package.json b/ee/package.jsonindex f4f5fc5b98..693432ecad 100644--- a/ee/package.json+++ b/ee/package.json@@ -33,7 +33,7 @@"@repo/eslint-config": "*","@repo/typescript-config": "*","@types/node": "^20.11.29",- "@typescript-eslint/parser": "^7.6.0",+ "@typescript-eslint/parser": "^7.7.0","eslint": "^8.57.0","eslint-config-prettier": "^9.1.0","eslint-config-standard": "^17.1.0",diff --git a/packages/config-eslint/package.json b/packages/config-eslint/package.jsonindex a77e5ced15..33021cf5ac 100644--- a/packages/config-eslint/package.json+++ b/packages/config-eslint/package.json@@ -9,7 +9,7 @@],"devDependencies": {"@typescript-eslint/eslint-plugin": "^7.1.0",- "@typescript-eslint/parser": "^7.6.0",+ "@typescript-eslint/parser": "^7.7.0","@vercel/style-guide": "^6.0.0","eslint-config-next": "^14.2.1","eslint-config-prettier": "^9.1.0",diff --git a/packages/shared/package.json b/packages/shared/package.jsonindex 83e6fd1561..b2f8be7f36 100644--- a/packages/shared/package.json+++ b/packages/shared/package.json@@ -58,7 +58,7 @@"@types/node": "^20.11.29","@types/pg": "^8.11.5","@types/uuid": "^9.0.8",- "@typescript-eslint/parser": "^7.6.0",+ "@typescript-eslint/parser": "^7.7.0","eslint": "^8.57.0","eslint-config-prettier": "^9.1.0","eslint-config-standard": "^17.1.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d4558b47d3..8f157669d7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -49,8 +49,8 @@ importers:specifier: ^20.11.29version: 20.11.29'@typescript-eslint/parser':- specifier: ^7.6.0- version: 7.6.0([email protected])([email protected])+ specifier: ^7.7.0+ version: 7.7.0([email protected])([email protected])eslint:specifier: ^8.57.0version: 8.57.0@@ -80,10 +80,10 @@ importers:devDependencies:'@typescript-eslint/eslint-plugin':specifier: ^7.1.0'@typescript-eslint/parser':- specifier: ^7.6.0- version: 7.6.0([email protected])([email protected])+ specifier: ^7.7.0+ version: 7.7.0([email protected])([email protected])'@vercel/style-guide':specifier: ^6.0.0@@ -160,8 +160,8 @@ importers:specifier: ^9.0.8version: 9.0.8'@typescript-eslint/parser':- specifier: ^7.6.0- version: 7.6.0([email protected])([email protected])+ specifier: ^7.7.0+ version: 7.7.0([email protected])([email protected])eslint:specifier: ^8.57.0version: 8.57.0@@ -529,10 +529,10 @@ importers:version: 9.0.8'@typescript-eslint/eslint-plugin':specifier: ^6.21.0'@typescript-eslint/parser':- specifier: ^7.6.0- version: 7.6.0([email protected])([email protected])+ specifier: ^7.7.0+ version: 7.7.0([email protected])([email protected])autoprefixer:specifier: ^10.4.19version: 10.4.19([email protected])@@ -670,8 +670,8 @@ importers:specifier: ^8.11.5version: 8.11.5'@typescript-eslint/parser':- specifier: ^7.6.0- version: 7.6.0([email protected])([email protected])+ specifier: ^7.7.0+ version: 7.7.0([email protected])([email protected])eslint:specifier: ^8.57.0version: 8.57.0@@ -6438,7 +6438,7 @@ packages:dev: trueoptional: true- /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):+ /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==}engines: {node: ^16.0.0 || >=18.0.0}peerDependencies:@@ -6450,7 +6450,7 @@ packages:optional: truedependencies:'@eslint-community/regexpp': 4.10.0- '@typescript-eslint/parser': 7.6.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.7.0([email protected])([email protected])'@typescript-eslint/scope-manager': 6.21.0'@typescript-eslint/type-utils': 6.21.0([email protected])([email protected])'@typescript-eslint/utils': 6.21.0([email protected])([email protected])@@ -6467,7 +6467,7 @@ packages:- supports-colordev: true- /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):+ /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-STEDMVQGww5lhCuNXVSQfbfuNII5E08QWkvAw5Qwf+bj2WT+JkG1uc+5/vXA3AOYMDHVOSpL+9rcbEUiHIm2dw==}engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:@@ -6479,7 +6479,7 @@ packages:optional: truedependencies:'@eslint-community/regexpp': 4.10.0- '@typescript-eslint/parser': 7.6.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.7.0([email protected])([email protected])'@typescript-eslint/scope-manager': 7.3.1'@typescript-eslint/type-utils': 7.3.1([email protected])([email protected])'@typescript-eslint/utils': 7.3.1([email protected])([email protected])@@ -6517,8 +6517,8 @@ packages:- supports-colordev: true- resolution: {integrity: sha512-usPMPHcwX3ZoPWnBnhhorc14NJw9J4HpSXQX4urF2TPKG0au0XhJoZyX62fmvdHONUkmyUe74Hzm1//XA+BoYg==}+ resolution: {integrity: sha512-fNcDm3wSwVM8QYL4HKVBggdIPAy9Q41vcvC/GtDobw3c4ndVT3K6cqudUmjHPw8EAp4ufax0o58/xvWaP2FmTg==}engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:eslint: ^8.56.0@@ -6527,10 +6527,10 @@ packages:typescript:optional: truedependencies:- '@typescript-eslint/scope-manager': 7.6.0- '@typescript-eslint/types': 7.6.0- '@typescript-eslint/typescript-estree': 7.6.0([email protected])- '@typescript-eslint/visitor-keys': 7.6.0+ '@typescript-eslint/scope-manager': 7.7.0+ '@typescript-eslint/types': 7.7.0+ '@typescript-eslint/typescript-estree': 7.7.0([email protected])+ '@typescript-eslint/visitor-keys': 7.7.0debug: 4.3.4([email protected])eslint: 8.57.0typescript: 5.4.5@@ -6570,12 +6570,12 @@ packages:'@typescript-eslint/visitor-keys': 7.3.1dev: true- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-ngttyfExA5PsHSx0rdFgnADMYQi+Zkeiv4/ZxGYUWd0nLs63Ha0ksmp8VMxAIC0wtCFxMos7Lt3PszJssG/E6w==}+ /@typescript-eslint/[email protected]:+ resolution: {integrity: sha512-/8INDn0YLInbe9Wt7dK4cXLDYp0fNHP5xKLHvZl3mOT5X17rK/YShXaiNmorl+/U4VKCVIjJnx4Ri5b0y+HClw==}engines: {node: ^18.18.0 || >=20.0.0}dependencies:- '@typescript-eslint/types': 7.6.0- '@typescript-eslint/visitor-keys': 7.6.0+ '@typescript-eslint/types': 7.7.0+ '@typescript-eslint/visitor-keys': 7.7.0dev: true@@ -6638,8 +6638,8 @@ packages:engines: {node: ^18.18.0 || >=20.0.0}dev: true- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-h02rYQn8J+MureCvHVVzhl69/GAfQGPQZmOMjG1KfCl7o3HtMSlPaPUAPu6lLctXI5ySRGIYk94clD/AUMCUgQ==}+ /@typescript-eslint/[email protected]:+ resolution: {integrity: sha512-G01YPZ1Bd2hn+KPpIbrAhEWOn5lQBrjxkzHkWvP6NucMXFtfXoevK82hzQdpfuQYuhkvFDeQYbzXCjR1z9Z03w==}engines: {node: ^18.18.0 || >=20.0.0}dev: true@@ -6730,8 +6730,8 @@ packages:- supports-colordev: true- /@typescript-eslint/[email protected]([email protected]):- resolution: {integrity: sha512-+7Y/GP9VuYibecrCQWSKgl3GvUM5cILRttpWtnAu8GNL9j11e4tbuGZmZjJ8ejnKYyBRb2ddGQ3rEFCq3QjMJw==}+ /@typescript-eslint/[email protected]([email protected]):+ resolution: {integrity: sha512-8p71HQPE6CbxIBy2kWHqM1KGrC07pk6RJn40n0DSc6bMOBBREZxSDJ+BmRzc8B5OdaMh1ty3mkuWRg4sCFiDQQ==}engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:typescript: '*'@@ -6739,8 +6739,8 @@ packages:typescript:optional: truedependencies:- '@typescript-eslint/types': 7.6.0- '@typescript-eslint/visitor-keys': 7.6.0+ '@typescript-eslint/types': 7.7.0+ '@typescript-eslint/visitor-keys': 7.7.0debug: 4.3.4([email protected])globby: 11.1.0is-glob: 4.0.3@@ -6842,11 +6842,11 @@ packages:eslint-visitor-keys: 3.4.3dev: true- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-4eLB7t+LlNUmXzfOu1VAIAdkjbu5xNSerURS9X/S5TUKWFRpXRQZbmtPqgKmYx8bj3J0irtQXSiWAOY82v+cgw==}+ /@typescript-eslint/[email protected]:+ resolution: {integrity: sha512-h0WHOj8MhdhY8YWkzIF30R379y0NqyOHExI9N9KCzvmu05EgG4FumeYa3ccfKUSphyWkWQE1ybVrgz/Pbam6YA==}engines: {node: ^18.18.0 || >=20.0.0}dependencies:- '@typescript-eslint/types': 7.6.0+ '@typescript-eslint/types': 7.7.0eslint-visitor-keys: 3.4.3dev: true@@ -6944,14 +6944,14 @@ packages:'@babel/core': 7.24.3'@babel/eslint-parser': 7.24.1(@babel/[email protected])([email protected])'@rushstack/eslint-patch': 1.7.2- '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected])([email protected])([email protected])- '@typescript-eslint/parser': 7.6.0([email protected])([email protected])+ '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected])([email protected])([email protected])+ '@typescript-eslint/parser': 7.7.0([email protected])([email protected])eslint: 8.57.0eslint-config-prettier: 9.1.0([email protected])eslint-import-resolver-alias: 1.1.2([email protected])- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])eslint-plugin-eslint-comments: 3.2.0([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected])([email protected])([email protected])eslint-plugin-jsx-a11y: 6.8.0([email protected])eslint-plugin-playwright: 1.5.4([email protected])([email protected])@@ -9224,7 +9224,7 @@ packages:eslint: 8.57.0eslint-import-resolver-node: 0.3.9eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])eslint-plugin-jsx-a11y: 6.8.0([email protected])eslint-plugin-react: 7.34.1([email protected])eslint-plugin-react-hooks: 4.6.0([email protected])@@ -9253,7 +9253,7 @@ packages:eslint-plugin-promise: ^6.0.0dependencies:eslint: 8.57.0- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])eslint-plugin-n: 16.6.2([email protected])eslint-plugin-promise: 6.1.1([email protected])dev: true@@ -9273,7 +9273,7 @@ packages:peerDependencies:eslint-plugin-import: '>=1.4.0'dependencies:- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])dev: true@@ -9297,7 +9297,7 @@ packages:enhanced-resolve: 5.16.0eslint: 8.57.0eslint-module-utils: 2.8.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])fast-glob: 3.3.2get-tsconfig: 4.7.3is-core-module: 2.13.1@@ -9309,7 +9309,7 @@ packages:- supports-colordev: trueresolution: {integrity: sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==}engines: {node: ^14.18.0 || >=16.0.0}peerDependencies:@@ -9319,8 +9319,8 @@ packages:debug: 4.3.4([email protected])enhanced-resolve: 5.16.0eslint: 8.57.0- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])fast-glob: 3.3.2get-tsconfig: 4.7.3is-core-module: 2.13.1@@ -9362,7 +9362,7 @@ packages:- supports-colordev: true- /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):+ /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==}engines: {node: '>=4'}peerDependencies:@@ -9383,11 +9383,11 @@ packages:eslint-import-resolver-webpack:optional: truedependencies:- '@typescript-eslint/parser': 7.6.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.7.0([email protected])([email protected])debug: 3.2.7eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])transitivePeerDependencies:- supports-colordev: true@@ -9415,7 +9415,7 @@ packages:ignore: 5.3.1dev: trueresolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==}engines: {node: '>=4'}peerDependencies:@@ -9425,7 +9425,7 @@ packages:'@typescript-eslint/parser':optional: truedependencies:- '@typescript-eslint/parser': 7.6.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.7.0([email protected])([email protected])array-includes: 3.1.7array.prototype.findlastindex: 1.2.4array.prototype.flat: 1.3.2@@ -9434,7 +9434,7 @@ packages:doctrine: 2.1.0eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])hasown: 2.0.2is-core-module: 2.13.1is-glob: 4.0.3@@ -9463,7 +9463,7 @@ packages:jest:optional: truedependencies:- '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected])([email protected])([email protected])+ '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected])([email protected])([email protected])'@typescript-eslint/utils': 5.62.0([email protected])([email protected])eslint: 8.57.0transitivePeerDependencies:@@ -9671,7 +9671,7 @@ packages:vitest:optional: truedependencies:- '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected])([email protected])([email protected])+ '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected])([email protected])([email protected])'@typescript-eslint/utils': 7.3.1([email protected])([email protected])eslint: 8.57.0transitivePeerDependencies:diff --git a/web/package.json b/web/package.jsonindex 16a993f4ac..38dd5a03f4 100644--- a/web/package.json+++ b/web/package.json@@ -129,7 +129,7 @@"@types/react-dom": "^18.2.25","@types/uuid": "^9.0.8","@typescript-eslint/eslint-plugin": "^6.21.0",- "@typescript-eslint/parser": "^7.6.0",+ "@typescript-eslint/parser": "^7.7.0","autoprefixer": "^10.4.19","dotenv-cli": "^7.3.0","eslint": "^8.56.0",diff --git a/web/src/components/LangfuseLogo.tsx b/web/src/components/LangfuseLogo.tsxindex 6ca09656ad..f49f0e7325 100644--- a/web/src/components/LangfuseLogo.tsx+++ b/web/src/components/LangfuseLogo.tsx@@ -1,4 +1,4 @@-import { AlertTriangle } from "lucide-react";+import { AlertTriangle, Check } from "lucide-react";import { VERSION } from "@/src/constants";import { env } from "@/src/env.mjs";@@ -42,10 +42,16 @@ export const LangfuseLogo = ({"flex items-center gap-2 self-stretch rounded-md px-3 py-2 text-xs ring-1 lg:-mx-2",env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "STAGING"? "bg-blue-100 text-blue-500 ring-blue-500"- : "bg-red-100 text-red-500 ring-red-500",+ : env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV"+ ? "bg-green-100 text-green-500 ring-green-500"+ : "bg-red-100 text-red-500 ring-red-500",)}>- <AlertTriangle size={16} />+ {env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV" ? (+ <Check size={16} />+ ) : (+ <AlertTriangle size={16} />+ )}<span className="whitespace-nowrap">{["EU", "US"].includes(env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION)? `PROD-${env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION}`diff --git a/web/src/components/layouts/layout.tsx b/web/src/components/layouts/layout.tsxindex c2226b4145..e1fb307401 100644--- a/web/src/components/layouts/layout.tsx+++ b/web/src/components/layouts/layout.tsx@@ -461,13 +461,15 @@ export default function Layout(props: PropsWithChildren) {href={env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "EU"? "https://langfuse.com/docs/demo"- : "https://docs-staging.langfuse.com/docs/demo"+ : "https://docs-staging.langfuse.com/docs/demo" // staging}target="_blank">- {env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "EU"- ? "Use Chat ↗"- : "Use Chat (staging) ↗"}+ {+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "EU"+ ? "Use Chat ↗"+ : "Use Chat (staging) ↗" // staging+ }</Link></Button></div>diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsxindex 37958fca32..22e77ee7c6 100644--- a/web/src/components/ui/CodeJsonViewer.tsx+++ b/web/src/components/ui/CodeJsonViewer.tsx@@ -114,6 +114,7 @@ export const IOTableCell = ({data: unknown;isLoading?: boolean;className?: string;+ singleLine?: boolean;}) => {return (<>diff --git a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx b/web/src/features/auth/components/AuthCloudRegionSwitch.tsxindex fa3a2ee8ff..bf610d8072 100644--- a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx+++ b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx@@ -12,18 +12,25 @@ const regions =flag: "🇪🇺",},]- : [- {- name: "US",- hostname: "us.cloud.langfuse.com",- flag: "🇺🇸",- },- {- name: "EU",- hostname: "cloud.langfuse.com",- flag: "🇪🇺",- },- ];+ : env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV"+ ? [+ {+ name: "DEV",+ flag: "🇪🇺",+ },+ ]+ : [+ {+ name: "US",+ hostname: "us.cloud.langfuse.com",+ flag: "🇺🇸",+ },+ {+ name: "EU",+ hostname: "cloud.langfuse.com",+ flag: "🇪🇺",+ },+ ];export function CloudRegionSwitch({isSignUpPage,@@ -66,7 +73,8 @@ export function CloudRegionSwitch({send_instantly: true,},);- window.location.hostname = region.hostname;+ if ("hostname" in region)+ window.location.hostname = region.hostname;}}><span className="mr-2 text-xl leading-none">{region.flag}</span>diff --git a/web/src/pages/api/auth/signup.ts b/web/src/pages/api/auth/signup.tsindex c47ac9120b..2d0cb28391 100644--- a/web/src/pages/api/auth/signup.ts+++ b/web/src/pages/api/auth/signup.ts@@ -84,7 +84,8 @@ export default async function handler(if (env.LANGFUSE_NEW_USER_SIGNUP_WEBHOOK &&env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION &&- env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "STAGING"+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "STAGING" &&+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "DEV") {await fetch(env.LANGFUSE_NEW_USER_SIGNUP_WEBHOOK, {method: "POST",diff --git a/web/src/pages/api/cron/ingestion-metrics.ts b/web/src/pages/api/cron/ingestion-metrics.tsindex 433dbb766b..23ac193f46 100644--- a/web/src/pages/api/cron/ingestion-metrics.ts+++ b/web/src/pages/api/cron/ingestion-metrics.ts@@ -10,7 +10,10 @@ export default async function handler(if (!process.env.NEXT_PUBLIC_POSTHOG_KEY)return res.status(200).json({ message: "No PostHog key provided" });- if (env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === undefined)+ if (+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === undefined ||+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV"+ )return res.status(200).json({message: "Only runs on Langfuse Cloud, no LANGFUSE_CLOUD_REGION provided",});diff --git a/web/src/pages/api/public/ingestion.ts b/web/src/pages/api/public/ingestion.tsindex 25ebba74c7..ce4fa74c73 100644--- a/web/src/pages/api/public/ingestion.ts+++ b/web/src/pages/api/public/ingestion.ts@@ -427,7 +427,8 @@ export const sendToWorkerIfEnvironmentConfigured = async (if (env.LANGFUSE_WORKER_HOST &&env.LANGFUSE_WORKER_PASSWORD &&- env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION &&+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "DEV") {const traceEvents = batchResults.filter((result) => result.type === eventTypes.TRACE_CREATE) // we only have create, no update.diff --git a/web/src/pages/auth/sign-up.tsx b/web/src/pages/auth/sign-up.tsxindex a3b73a7ee3..659b6c8f58 100644--- a/web/src/pages/auth/sign-up.tsx+++ b/web/src/pages/auth/sign-up.tsx@@ -63,9 +63,11 @@ export default function SignIn({ authProviders }: PageProps) {await signIn<"credentials">("credentials", {email: values.email,password: values.password,- callbackUrl: env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION- ? "/onboarding"- : "/?getStarted=1",+ callbackUrl:+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION &&+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "DEV"+ ? "/onboarding"+ : "/?getStarted=1",turnstileToken,});} catch (err) {diff --git a/web/src/server/auth.ts b/web/src/server/auth.tsindex 36992119f9..9102175699 100644--- a/web/src/server/auth.ts+++ b/web/src/server/auth.ts@@ -324,7 +324,8 @@ export async function getAuthOptions(): Promise<NextAuthOptions> {if (env.LANGFUSE_NEW_USER_SIGNUP_WEBHOOK &&env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION &&- env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "STAGING"+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "STAGING" &&+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== "DEV") {await fetch(env.LANGFUSE_NEW_USER_SIGNUP_WEBHOOK, {method: "POST",diff --git a/worker/package.json b/worker/package.jsonindex dc49ec81a3..0331749ac9 100644--- a/worker/package.json+++ b/worker/package.json@@ -50,7 +50,7 @@"@types/lodash": "^4.14.202","@types/node": "^20.11.19","@types/pg": "^8.11.5",- "@typescript-eslint/parser": "^7.6.0",+ "@typescript-eslint/parser": "^7.7.0","eslint": "^8.57.0","eslint-config-prettier": "^9.1.0","eslint-config-standard": "^17.1.0",