Skip to content

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

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.json
index 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.json
index 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.json
index 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.yaml
index d4558b47d3..8f157669d7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -49,8 +49,8 @@ importers:
specifier: ^20.11.29
version: 20.11.29
'@typescript-eslint/parser':
- specifier: ^7.6.0
+ specifier: ^7.7.0
eslint:
specifier: ^8.57.0
version: 8.57.0
@@ -80,10 +80,10 @@ importers:
devDependencies:
'@typescript-eslint/eslint-plugin':
specifier: ^7.1.0
- version: 7.3.1(@typescript-eslint/[email protected])([email protected])([email protected])
+ version: 7.3.1(@typescript-eslint/[email protected])([email protected])([email protected])
'@typescript-eslint/parser':
- specifier: ^7.6.0
+ specifier: ^7.7.0
'@vercel/style-guide':
specifier: ^6.0.0
@@ -160,8 +160,8 @@ importers:
specifier: ^9.0.8
version: 9.0.8
'@typescript-eslint/parser':
- specifier: ^7.6.0
+ specifier: ^7.7.0
eslint:
specifier: ^8.57.0
version: 8.57.0
@@ -529,10 +529,10 @@ importers:
version: 9.0.8
'@typescript-eslint/eslint-plugin':
specifier: ^6.21.0
- version: 6.21.0(@typescript-eslint/[email protected])([email protected])([email protected])
+ version: 6.21.0(@typescript-eslint/[email protected])([email protected])([email protected])
'@typescript-eslint/parser':
- specifier: ^7.6.0
+ specifier: ^7.7.0
autoprefixer:
specifier: ^10.4.19
version: 10.4.19([email protected])
@@ -670,8 +670,8 @@ importers:
specifier: ^8.11.5
version: 8.11.5
'@typescript-eslint/parser':
- specifier: ^7.6.0
+ specifier: ^7.7.0
eslint:
specifier: ^8.57.0
version: 8.57.0
@@ -6438,7 +6438,7 @@ packages:
dev: true
optional: 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: true
dependencies:
'@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-color
dev: 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: true
dependencies:
'@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-color
dev: 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: true
dependencies:
- '@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.0
debug: 4.3.4([email protected])
eslint: 8.57.0
typescript: 5.4.5
@@ -6570,12 +6570,12 @@ packages:
'@typescript-eslint/visitor-keys': 7.3.1
dev: 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.0
dev: 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-color
dev: 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: true
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.0
debug: 4.3.4([email protected])
globby: 11.1.0
is-glob: 4.0.3
@@ -6842,11 +6842,11 @@ packages:
eslint-visitor-keys: 3.4.3
dev: 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.0
eslint-visitor-keys: 3.4.3
dev: 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.0
eslint-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.0
eslint-import-resolver-node: 0.3.9
eslint-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.0
dependencies:
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.0
eslint: 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-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])
fast-glob: 3.3.2
get-tsconfig: 4.7.3
is-core-module: 2.13.1
@@ -9309,7 +9309,7 @@ packages:
- supports-color
dev: true
resolution: {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.0
eslint: 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.2
get-tsconfig: 4.7.3
is-core-module: 2.13.1
@@ -9362,7 +9362,7 @@ packages:
- supports-color
dev: true
resolution: {integrity: sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==}
engines: {node: '>=4'}
peerDependencies:
@@ -9383,11 +9383,11 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
- '@typescript-eslint/parser': 7.6.0([email protected])([email protected])
+ '@typescript-eslint/parser': 7.7.0([email protected])([email protected])
debug: 3.2.7
eslint: 8.57.0
eslint-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-color
dev: true
@@ -9415,7 +9415,7 @@ packages:
ignore: 5.3.1
dev: true
resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==}
engines: {node: '>=4'}
peerDependencies:
@@ -9425,7 +9425,7 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
- '@typescript-eslint/parser': 7.6.0([email protected])([email protected])
+ '@typescript-eslint/parser': 7.7.0([email protected])([email protected])
array-includes: 3.1.7
array.prototype.findlastindex: 1.2.4
array.prototype.flat: 1.3.2
@@ -9434,7 +9434,7 @@ packages:
doctrine: 2.1.0
eslint: 8.57.0
eslint-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.2
is-core-module: 2.13.1
is-glob: 4.0.3
@@ -9463,7 +9463,7 @@ packages:
jest:
optional: true
dependencies:
- '@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.0
transitivePeerDependencies:
@@ -9671,7 +9671,7 @@ packages:
vitest:
optional: true
dependencies:
- '@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.0
transitivePeerDependencies:
diff --git a/web/package.json b/web/package.json
index 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.tsx
index 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.tsx
index 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.tsx
index 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.tsx
index 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.ts
index 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.ts
index 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.ts
index 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.tsx
index 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.ts
index 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.json
index 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",