from Hacker News

Use Netlify Functions and the Twitter API v2 as a CMS for Your Gatsby Blog

by pauliescanlon on 11/23/20, 12:27 PM with 21 comments

  • by earthboundkid on 11/23/20, 3:26 PM

    I would just make a request to Twitter for the profile on build for the two sites. Do you expect to update your profile more frequently than your two sites? ISTM, you can just trigger manual builds when you do update your profile, instead of using a function, which is going to constantly be looking up and returning the same information.
  • by earthboundkid on 11/23/20, 3:21 PM

    Comments so far are negative, but not every solution needs to scale. I recently made a Netlify site where the CMS is just writing JSON out to GitHub. Yes, if GitHub goes down, it will break, but who cares? My site expects to only get a couple of weeks of editing every few years, so I don’t need something with more availability than that.
  • by colesantiago on 11/23/20, 2:15 PM

    Not sure if using 3rd party services for a CMS is a good idea. What happens if this API or Netlify goes down?

    Doesn't seem reliable.

  • by pauliescanlon on 11/23/20, 12:27 PM

    In this post I'm going to explain how you can use Netlify Functions to access your Twitter profile data using the Twitter v2 API and display it on your Gatsby blog.
  • by jiofih on 11/23/20, 2:28 PM

    How about “no”.
  • by jblok on 11/23/20, 6:15 PM

    Seems like a great solution to streamline your personal online presence. If you don’t have a Twitter you could probably do the same thing with GitHub or Instagram
  • by rammy1234 on 11/23/20, 5:42 PM

    For my blog , i am using Github as CMS using the github API. It simply works.