Astro JS Disable Telemetry: stop Astro Data Collection Astro JS Disable Telemetry: stop Astro Data Collection
In this Astro JS disable telemetry post, we see how you can stop Astro’s CLI tool collecting data. By default Astro will collect data when it runs. You might have surveillance capitalism concerns and so consider taking steps to address those concerns. We will it takes nothing more than adding an extra line as you spin up your new project to disable telemetry.
You may also want to block the
telemetry.astro.build domain in your
/etc/hosts file or on any DNS, ad-blocking or proxy tools you have
- Getting started with the Astro more generally,
Surveillance Capitalism video from BBC
Astro Telemetry GitHub repo (so you can check what data Astro collects)
how to modify
/etc/hostsin Mac OS X
Element chat: #Rodney matrix chat
Twitter handle: @askRodney
- Yes, by default the Astro JS tool sends telemetry back to Astro. However, the tool states that the data are anonymous. At the time of writing it collects project Astro configuration data as well as details on your system.
- To disable data collection (enabled by default), run the `pnpm astro telemetry disable` command within your project folder. The tool will then confirm that it has disabled telemetry.
- As an extra step (in addition to disabling telemetry in the CLI), you could consider blocking the telemetry.astro.build domain on your system. However, you should only attempt this if you have some knowledge of DNS. You might do this by updating you `/etc/hosts` file or within tools like dnscrypt-proxy, Privoxy and unbound. If your system is not able to resolve that domain into an IP address, it will not be able to connect to it. This additional block can add extra protection, for example if a bug in the tool allows data collection even once you have disabled it.
If you have found this video useful, see links below for further related content on this site. I do hope you learned one new thing from the video. Let me know if there are any ways I can improve on it. I hope you will use the code or starter in your own projects. Be sure to share your work on Twitter, giving me a mention so I can see what you did. Finally be sure to let me know ideas for other short videos you would like to see. Read on to find ways to get in touch, further below. If you have found this post useful, even though you can only afford even a tiny contribution, please consider supporting me through Buy me a Coffee.
👀 Just dropped a new post on how you can disable data collection in Astro.— Rodney (@askRodney) May 9, 2022
The 🚀 Astro CLI will collect data by default. Although the telemetry is anonymised, you might still want to block it.
Hope you find it useful!
#JAMStack #AstroJS #askRodneyhttps://t.co/EGklwCvnIg
Finally, feel free to share the post on your social media accounts for all your followers who will
find it useful. As well as leaving a comment below, you can get in touch via @askRodney