I feel like Max is about two years ahead of me on everything π Here I am thinking about getting Twitter syndication working on Netlify, and he wrote a perfect tutorial back in 2019. Definitely need to give this a spin!Β The basic concept is to provide a JSON feed of new "tweets" (or thoughts, or notes, or whatever you want to call them) and then use a Netlify "Function" to parse that feed, connect to the Twitter API, and fire off your tweets on build. Very cool!
To trigger our custom function everytime a new version of the site was successfully deployed, we just need to name it deploy-succeeded.js
. Netlify will then automatically fire it after each new build, while also making sure itβs not executable from the outside.