TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

56 点作者 pauliescanlon超过 4 年前

7 条评论

earthboundkid超过 4 年前
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.
评论 #25196321 未加载
earthboundkid超过 4 年前
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.
colesantiago超过 4 年前
Not sure if using 3rd party services for a CMS is a good idea. What happens if this API or Netlify goes down?<p>Doesn&#x27;t seem reliable.
评论 #25187156 未加载
评论 #25186949 未加载
pauliescanlon超过 4 年前
In this post I&#x27;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.
评论 #25189058 未加载
jiofih超过 4 年前
How about “no”.
评论 #25187084 未加载
jblok超过 4 年前
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
rammy1234超过 4 年前
For my blog , i am using Github as CMS using the github API. It simply works.
评论 #25196358 未加载