I’ve set up a new Frontity site and changed state.source.api in
frontity.settings.js to point to my WordPress site.
When I load the Frontity site (currently at localhost:3000) I get the following error displayed:
Internal Server Error
When I change it back to the default demo source (
https://test.frontity.io/wp-json) everything works fine again.
Compilation succeeds but I also get this error in the terminal when attempting to load the page in the browser:
FetchError: invalid json response body at http://wptest.test/wp-json/wp/v2/posts/?_embed=true&page=1 reason: Unexpected token < in JSON at position 0