diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index d0d96018d..2b10fbc2c 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 653913033..439092c20 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 56957f092..48bdb2301 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 9c30bce74..a19c543d6 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