How a Software Engineer solves problems at work: Fixing Contentful previews of our website

Miche Wong
1 min readAug 10, 2020

Today, I wanted to do a walkthrough of fixing a thing at work.

My previous coworker set up a system called Contentful, which we use as a content management system for storing job posts, blog posts, and other static content. It’s an easy way for marketing and recruiting departments to have a nice UI and for us to outsource that to another service. And what’s great about another service? We don’t have to maintain it!

Which is great, until your coworker leaves and you have to fix a problem that you don’t have the most context for.

This brings me to the task of the day: I’m going to attempt to fix the content preview feature of Contentful that my coworker set up in the past. In the end, users in our company should be able to preview a generated link of the website in the content editing box.

Now, let’s dive in.

What is Contentful?

  1. How does the preview system work?

Found that there was a Netlify link with a dynamic slug that “passes” the blog post over to the link when the Preview button is clicked.

The Netlify link was changed when we switched something in our CI system.

Task done.

--

--