Fetch issues Uncaught (in promise) TypeError: Failed to fetch

Currently I’m starting with frontity and when I try to add my website information inside of the frontity.settings.json like this

{

  "name": "@frontity/wp-source",

  "state": {

    "source": {

      "url": "http://motion-dev.com/",

    }

  }

},

I’m getting some fetch errors

Uncaught (in promise) TypeError: Failed to fetch

I don’t know if I put something wrong or what but I cannot see the info on my website due that error

Hi @perezcarlos1580, try to add the “api” setting like this:

...
      name: "@frontity/wp-source",
        state: {
          source: {
            url: "http://motion-dev.com/",
            api: "http://motion-dev.com/wp-json",
          }
        }
...

I hope this work :slight_smile: