Easiest way:
Put this in .env.local:
NEXT_TELEMETRY_DISABLED=true
OR
Run this:
yarn next telemetry disable
and it will put a config file in your home directory:
e.g. /home/ubuntu/.config/nextjs-nodejs/config.json
{
"telemetry": {
"notifiedAt": "1683688816603",
"anonymousId": "27485945somehashvalue",
"salt": "27359275923somesaltvalue",
"enabled": false
}
}