0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/.changeset/neat-dots-hear.md
Matthew Phillips a83e362ee4
Prevent usage of astro:content in the client (#11827)
* Prevent usage of astro:content in the client

* Fix build errors

* Update .changeset/neat-dots-hear.md

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Throw an AstroError

* Just throw

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-08-27 16:35:44 -04:00

400 B

astro
major

Prevent usage of astro:content in the client

Usage of astro:content in the client has always been discouraged because it leads to all of your content winding up in your client bundle, and can possibly leaks secrets.

This formally makes doing so impossible, adding to the previous warning with errors.

In the future Astro might add APIs for client-usage based on needs.