Compare commits

...
2 Commits
Author SHA1 Message Date
Marc Klingen db5c575ae0 chore: release v2.93.2
CI/CD / lint (push) Waiting to run
CI/CD / test-docker-build (push) Waiting to run
CI/CD / tests-web-sync (node20, pg12) (push) Waiting to run
CI/CD / tests-web-sync (node20, pg15) (push) Waiting to run
CI/CD / tests-web-async (node20, pg12, mode) (push) Waiting to run
CI/CD / tests-web-async (node20, pg15, mode) (push) Waiting to run
CI/CD / tests-web-async (node20, pg12, mode-azure) (push) Waiting to run
CI/CD / tests-web-async (node20, pg15, mode-azure) (push) Waiting to run
CI/CD / tests-worker (node20, pg12, mode) (push) Waiting to run
CI/CD / tests-worker (node20, pg15, mode) (push) Waiting to run
CI/CD / tests-worker (node20, pg12, mode-azure) (push) Waiting to run
CI/CD / tests-worker (node20, pg15, mode-azure) (push) Waiting to run
CI/CD / e2e-tests (push) Waiting to run
CI/CD / e2e-server-tests (push) Waiting to run
CI/CD / all-ci-passed (push) Blocked by required conditions
CI/CD / push-docker-image (push) Blocked by required conditions
2024-12-03 17:53:55 +01:00
Marc Klingen 2a0f482578 fix: remove LANGFUSE_CSP_DISABLE (did not work) and disable csp headers on HF Spaces (#4545) 2024-12-03 17:51:50 +01:00
8 changed files with 23 additions and 21 deletions
-3
View File
@@ -28,9 +28,6 @@ ENCRYPTION_KEY="0000000000000000000000000000000000000000000000000000000000000000
# Use CSP headers to enforce HTTPS, optional
# LANGFUSE_CSP_ENFORCE_HTTPS="true"
# Optionally, disable CSP headers
# LANGFUSE_CSP_DISABLE="true"
# Configure base path for self-hosting, optional
# Note: You need to build the docker image with the base path set and cannot use the pre-built docker image if you set this.
# NEXT_PUBLIC_BASE_PATH="/app"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "langfuse",
"version": "2.93.1",
"version": "2.93.2",
"author": "engineering@langfuse.com",
"license": "MIT",
"private": true,
+18 -11
View File
@@ -98,19 +98,26 @@ const nextConfig = {
],
},
// CSP header
...(env.LANGFUSE_CSP_DISABLE !== "true"
? [
{
source: "/:path((?!api).*)*",
headers: [
{
source: "/:path((?!api).*)*",
headers: [
{
key: "Content-Security-Policy",
value: cspHeader.replace(/\n/g, ""),
},
],
key: "Content-Security-Policy",
value: cspHeader.replace(/\n/g, ""),
},
]
: []),
],
// Disable CSP on Hugging Face to allow for embedded use of Langfuse
missing: [
{
type: "host",
value: "huggingface.co",
},
{
type: "host",
value: ".*\\.hf\\.space$", // *.hf.space
},
],
},
// Required to check authentication status from langfuse.com
...(env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== undefined
? [
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "2.93.1",
"version": "2.93.2",
"private": true,
"license": "MIT",
"engines": {
+1 -1
View File
@@ -1 +1 @@
export const VERSION = "v2.93.1";
export const VERSION = "v2.93.2";
-2
View File
@@ -47,7 +47,6 @@ export const env = createEnv({
.enum(["OWNER", "ADMIN", "MEMBER", "VIEWER"])
.optional(),
LANGFUSE_CSP_ENFORCE_HTTPS: z.enum(["true", "false"]).optional().default("false"),
LANGFUSE_CSP_DISABLE: z.enum(["true", "false"]).optional().default("false"),
// Telemetry
TELEMETRY_ENABLED: z.enum(["true", "false"]).optional(),
// AUTH
@@ -276,7 +275,6 @@ export const env = createEnv({
process.env.LANGFUSE_NEW_USER_SIGNUP_WEBHOOK,
SALT: process.env.SALT,
LANGFUSE_CSP_ENFORCE_HTTPS: process.env.LANGFUSE_CSP_ENFORCE_HTTPS,
LANGFUSE_CSP_DISABLE: process.env.LANGFUSE_CSP_DISABLE,
TELEMETRY_ENABLED: process.env.TELEMETRY_ENABLED,
// Default org, project and role
LANGFUSE_DEFAULT_ORG_ID: process.env.LANGFUSE_DEFAULT_ORG_ID,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "worker",
"version": "2.93.1",
"version": "2.93.2",
"description": "",
"license": "MIT",
"private": true,
+1 -1
View File
@@ -1 +1 @@
export const VERSION = "v2.93.1";
export const VERSION = "v2.93.2";