Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: Support NEXT_TELEMETRY_DISABLED (#7181)

Nam Vu57ce8449b027
diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml
index d0d96018d41..2b10fbc2ccb 100644
--- a/docker/docker-compose.yaml
+++ b/docker/docker-compose.yaml
@@ -232,6 +232,7 @@ services:
CONSOLE_API_URL: ${CONSOLE_API_URL:-}
APP_API_URL: ${APP_API_URL:-}
SENTRY_DSN: ${WEB_SENTRY_DSN:-}
+ NEXT_TELEMETRY_DISABLED: ${NEXT_TELEMETRY_DISABLED:-0}
# The postgres database.
db:
diff --git a/web/.env.example b/web/.env.example
index 653913033d8..439092c20e0 100644
--- a/web/.env.example
+++ b/web/.env.example
@@ -13,3 +13,6 @@ NEXT_PUBLIC_PUBLIC_API_PREFIX=http://localhost:5001/api
# SENTRY
NEXT_PUBLIC_SENTRY_DSN=
+
+# Disable Next.js Telemetry (https://nextjs.org/telemetry)
+NEXT_TELEMETRY_DISABLED=1
\ No newline at end of file
diff --git a/web/Dockerfile b/web/Dockerfile
index 56957f09270..48bdb2301ad 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -39,6 +39,7 @@ ENV DEPLOY_ENV=PRODUCTION
ENV CONSOLE_API_URL=http://127.0.0.1:5001
ENV APP_API_URL=http://127.0.0.1:5001
ENV PORT=3000
+ENV NEXT_TELEMETRY_DISABLED=1
# set timezone
ENV TZ=UTC
diff --git a/web/docker/entrypoint.sh b/web/docker/entrypoint.sh
index 9c30bce7488..a19c543d684 100755
--- a/web/docker/entrypoint.sh
+++ b/web/docker/entrypoint.sh
@@ -19,5 +19,6 @@ export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_API_URL}/api
export NEXT_PUBLIC_SENTRY_DSN=${SENTRY_DSN}
export NEXT_PUBLIC_SITE_ABOUT=${SITE_ABOUT}
+export NEXT_TELEMETRY_DISABLED=${NEXT_TELEMETRY_DISABLED}
pm2 start ./pm2.json --no-daemon