How to disable next telemetry #9241
-
currently the keystone build logs that next.js telemetry is being collected. As only keystone is instrumenting the next build, I am unsure about how to turn it off. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Per the Next docs: env variables:
To verify:
I also tried with |
Beta Was this translation helpful? Give feedback.
-
Please see https://nextjs.org/telemetry
|
Beta Was this translation helpful? Give feedback.
Per the Next docs:
env variables:
NEXT_TELEMETRY_DISABLED=1
seems to work immediately.To verify:
NEXT_TELEMETRY_DEBUG=1
yarn dev
[telemetry]
object logged (after✨ Preparing Admin UI app
)NEXT_TELEMETRY_DISABLED=1
varyarn dev
again, no more log.I also tried with
yarn next telemetry disable
, it confirmed it disabled it, but when I ranyarn dev
, I still received the telemetry log - so go with the.env
option.