Skip to content

TypeError: Failed to parse URL from /wp-json/headless-wp/v1/app #950

Description

@stefanmiodrag

Describe the bug

I get: TypeError: Failed to parse URL from /wp-json/headless-wp/v1/app randomly in production (i.e. deployed to Vercel) despite NEXT_PUBLIC_HEADLESS_WP_URL env being set.

Any idea what I could be doing wrong?

Steps to Reproduce

  1. Navigate to a page
  2. Page sometimes randomly fails and throws error
  3. Vercel log says "TypeError: Failed to parse URL from /wp-json/headless-wp/v1/app"

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions