Skip to content

The OG (Open Graph) image route at /api/og/climb doesn't fully support MoonBoard climbs #627

@marcodejongh

Description

@marcodejongh

. While the recent fix (commit 4363d62) prevents the "Size dimensions not found" crash, the generated OG images won't display holds correctly.

Current Behavior
For MoonBoard climbs, the OG image shows an empty board without any holds rendered.

Root Cause
MoonBoard uses a different rendering approach than Aurora boards (Kilter/Tension):

Property Aurora Boards MoonBoard
holdsData Array of hold coordinates Empty []
images_to_holds Image URL mapping Empty {}
Hold positioning Coordinate-based (cx, cy, r) Grid-based (A1-K18)
Board images Via images_to_holds keys Via holdSetImages + layoutFolder
Required Changes
To fully support MoonBoard OG images:

Detect MoonBoard and use layout folder images from /images/moonboard/{layoutFolder}/
Use getGridPosition() from moonboard-config.ts to position holds based on their IDs
Apply MoonBoard's color scheme (green=start, blue=hand, red=finish)
Related
Fix commit: 4363d62
MoonBoard config: packages/web/app/lib/moonboard-config.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions