Some helper scripts and documentation about how we moved our blog and projects from WordPress to Airtable.
- Create an export of Posts
- Save that as
posts.xmlin thedatafolder (or specify a custom path) - Run
AIRTABLE_API_KEY=pat123.def npm start migrate-blogs [path-to-xml](with your Airtable access token)
- Create an export of Projects (custom post type)
- Save that as
projects.xmlin thedatafolder (or specify a custom path) - Run
AIRTABLE_API_KEY=pat123.def npm start migrate-projects [path-to-xml](with your Airtable access token)
- Run
AIRTABLE_API_KEY=pat123.def ANTHROPIC_API_KEY=sk-ant-abcd npm start fix-blogs(with your Airtable access token and Anthropic API key)
- Run
AIRTABLE_API_KEY=pat123.def ANTHROPIC_API_KEY=sk-ant-abcd npm start fix-projects(with your Airtable access token and Anthropic API key)
- Run
AIRTABLE_API_KEY=pat123.def ANTHROPIC_API_KEY=sk-ant-abcd npm start check-renderingto check if projects render properly on the new site - The script will print any problematic pages to the console with detailed issues
- Run
AIRTABLE_API_KEY=your_airtable_api_key WEBSITE_ASSETS_BUCKET_ACCESS_KEY_ID=your_access_key_id WEBSITE_ASSETS_BUCKET_SECRET_ACCESS_KEY=your_secret_access_key npm start migrate-cms-filesto migrate all CMS files to S3 - The script will find any URLs in blogs and projects that point to the old CMS (cms.bluedot.org/u/...), download those files, upload them to an S3 bucket, and update the links in the text.