Skip to content

Add docs (or potentially a recipe) for proxying requests from an endpoint #10351

Open
@bholmesdev

Description

📚 Subject area/topic

SSR

📋 Suggested page

https://docs.astro.build/en/guides/endpoints/#server-endpoints-api-routes

📋 General description or bullet points (if proposing new content)

We received a roadmap discussion for adding better proxy support from API endpoints. Based on the replies, this is possible today by returning the result of a fetch() call. This capability is not documented, nor is it very intuitive. Would be worth an explicit guide on Proxying Requests.

🖥️ Reproduction of code samples in StackBlitz

No response

Metadata

Assignees

No one assigned

    Labels

    add new contentDocument something that is not in docs. May require testing, confirmation, or affect other pages.help wantedIssues looking for someone to run with them!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions