Skip to content

Conflicting TSX Endpoint support #13324

@fshowalter

Description

@fshowalter

📚 Subject area/topic

TSX Endpoint support

📋 Page(s) affected (or suggested, for new content)

https://docs.astro.build/en/reference/experimental-flags/fonts/
https://docs.astro.build/en/guides/endpoints/

📋 Description of content that is out-of-date or incorrect

```tsx title="src/pages/og.png.tsx" {2} "fontData[\"--font-roboto\"]"
shows an example of using the fonts API with a .tsx endpoint to produce an OpenGraph image is Satori. This is a great use case, but according to withastro/astro#9588 it's not supported (and won't be) despite the comments on that issue pointing to this exact use case. Which is right?

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    code snippet updateUpdates a code sample: typo, outdated code etc.improve or update documentationEnhance / update existing documentation (e.g. add example, improve description, update for changes)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions