0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/.changeset/blue-rabbits-hear.md
Jean-Baptiste Alleaume aa16b6cebc
Add response iterator to node adapter (#5418)
* add response iterator to node adapter

* changeset

* add node-fetch types

* fix @types/node-fetch as a dev dep
2022-11-16 16:55:15 -05:00

9 lines
323 B
Markdown

---
'@astrojs/node': minor
---
Sometimes Astro sends a ReadableStream as a response and it raise an error **TypeError: body is not async iterable.**
I added a function to get a response iterator from different response types (sourced from apollo-client).
With this, node adapter can handle all the Astro response types.