[v3 checks] Remove references of returning simple objects from endpoints #4296
Labels
improve documentation
Enhance existing documentation (e.g. add an example, improve description)
v3.0
📚 Subject area/topic
Endpoints
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/core-concepts/endpoints/
I don't see any other pages that needs updating, but could worth checking if I miss something.
📋 General description or bullet points (if proposing new content)
Endpoints should return with a
Response
instead of a simple object in Astro 3.0.Note: While the migration guide has the
ResponseWithEncoding
API to ease the change, I don't think we want to recommend it as most setup can useResponse
with a little refactoring. For example, an image can be served like this too:So the docs should not use
ResponseWithEncoding
if possible.🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
N/A. Original core PR: withastro/astro#8132
The text was updated successfully, but these errors were encountered: