Skip to content

Commit bdcd9e0

Browse files
docs: Clarification in ResponseSentError cause (#14391)
* Clarify that response can only be changed at page level and not normal components * Accept suggestion Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> --------- Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
1 parent b0cffe7 commit bdcd9e0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/astro/src/core/errors/errors-data.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,10 @@ export const CouldNotTransformImage = {
768768

769769
/**
770770
* @docs
771+
* @see
772+
* - [HTML streaming](https://docs.astro.build/en/guides/on-demand-rendering/#html-streaming)
771773
* @description
772-
* Making changes to the response, such as setting headers, cookies, and the status code cannot be done outside of page components.
774+
* Making changes to the response, such as setting headers, cookies, and the status code can only be done in [page components](https://docs.astro.build/en/basics/astro-pages/).
773775
*/
774776
export const ResponseSentError = {
775777
name: 'ResponseSentError',

0 commit comments

Comments
 (0)