Problem
Telemetry is anonymous data that provides the Astro team insights into which Astro features are most often used.
By default, Astro will collect these anonymous data when it runs.
Telemetry config will be saved to a config file.
Source code: config.ts
| OS | Config |
|---|---|
| macOS | $HOME/Library/Preferences/astro/config.json |
| Windows | $USERPROFILE\AppData\Roaming\astro\Config\config.json |
| Linux | $HOME/.config/astro/config.json |
We see how to disable telemetry.
Solutions
Use
astrocommandshellpnpm run astro telemetry disableYou can run it automatically on the first-time setting up the project.
shellpnpm pkg set scripts.prepare="astro telemetry disable"Additional method
Block Astro's telemetry domain by adding this line to OS's host file.
127.0.0.1 telemetry.astro.build



