ResponseSentError: The response has already been sent to the browser and cannot be altered.
Making changes to the response, such as setting headers, cookies, and the status code can only be done in page components.
See Also:
Error Reference
© 2021 Fred K. Schott
Licensed under the MIT License.
https://docs.astro.build/en/reference/errors/response-sent-error/