datopian / frontend-v2

CKAN / Data Portal frontend as microservice in pure Javascript (Node).
http://tech.datopian.com/frontend/
MIT License
38 stars 18 forks source link

Handled error with try catch on homepage wordpress content #223

Closed sagargg closed 2 years ago

sagargg commented 2 years ago

Don't break a site when the frontend is unable to fetch WordPress home content.

Not related to this PR but I can issue it always looking for post number 3 so, probably it was implemented for a specific project. I think we should use slug name eg 'home' instead of post number but need to confirm if it is already used on other projects.

anuveyatsu commented 2 years ago

@sagargg it is trying to fetch latest 3 blog posts. You can check the wordpress.com API docs - https://developer.wordpress.com/docs/api/