Taha @ MJTHD
Blog
·1 min read

Cutting Next.js telemetry

Turning off the data collection that ships on by default — in dev, in CI, and in the image.

next.jsprivacy

Next.js collects anonymous usage telemetry by default. It's opt-out, not opt- in. For a personal site there's no reason to send anything, so it's off in three places.

Disable it everywhere

The flag is a single environment variable, NEXT_TELEMETRY_DISABLED=1. Set it where builds run.

In the repo .env:

NEXT_TELEMETRY_DISABLED=1

In the Dockerfile, on every stage that runs next:

ENV NEXT_TELEMETRY_DISABLED=1

And once on the dev machine, which writes the preference to disk:

npx next telemetry disable

Verify

npx next telemetry status

It should report Status: Disabled. Nothing leaves the build. The config also drops the x-powered-by header — small, but free.