Skip to content

Measuring text for the purpose of rendering badges fails on Vercel #1601

Description

@wojtekmaj

Describe the bug

On local machine, /api/registry/badge/version/react-pdf?label=wwwwwwwwwwww or iiiiiiiiiiii most likely will render correctly:

Image

Image

On Vercel, measuring text with canvas is crashing, resulting in inaccurate fallback measurements:

Image

Image

Additional context

No response

Logs

No logs, which is exactly why it's so hard to debug for me personally

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backServer, Datap2Priority 2 bug (medium)

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions