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
- Navigate to a page
- Page sometimes randomly fails and throws error
- 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
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
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct