mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
a83e362ee4
* 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>
11 lines
400 B
Markdown
11 lines
400 B
Markdown
---
|
|
'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.
|