Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

error TypeError: Failed to parse URL from undefined/api/graphql?page=home

default discord avatar
taun21602 years ago

I'm attempting to setup a Next boilerplate to render blocks - I'm copy/pasting payload-main (Next) files. I'm receiving this error -

error TypeError: Failed to parse URL from undefined/api/graphql?page=home


Do you know how to solve?


Repo:

https://github.com/taunhealy/payloadcms_melex_next

This is the repo folders, where or what is

undefined/api?




Oh, I think it's because I have the payload-website graphql queries. I think I'm going to remove all of them and go the REST route.

    Star on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get dedicated engineering support directly from the Payload team.