⛔️ How to 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 see it takes nothing more than adding an extra line as you spin up your new project to disable telemetry.
At any rate, here’s the video with all the details. You can drop a comment below or reach out for a chat on Element as well as Twitter @mention if you have suggestions for improvements or questions.
📹 Video #
🗳 Poll #
🖥 Code #
Disable Astro telemetry from the CLI #
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
running.
🔗 Links #
- 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/hosts
in Mac OS X , - Astro Privacy Policy ,
- Element chat: #Rodney matrix chat ,
- Twitter handle: @askRodney .
🏁 Astro JS Disable Telemetry: Summary #
Does Astro JS collect data? #
- 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.
Can you disable Astro telemetry? #
- 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.
What else can you do to disable Astro data collection? #
- 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 your `/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.
🙏🏽 Feedback #
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 on Twitter and also askRodney on Telegram . Also, see further ways to get in touch with Rodney Lab. I post regularly on SvelteKit as well as Search Engine Optimization among other topics. Also, subscribe to the newsletter to keep up-to-date with our latest projects.