Solving the Notion Image expiry time issue

When I set up my Notion-powered blog at meshu.net I figured everything was fine as the blog pages appeared as expected.

However, there was one problem that I didn’t notice until I visited my blog website the next day after making it live. The problem was that the images that you add to your blog pages have an expiry time of one hour.

This meant that the images on my blog pages wouldn’t show resulting in missing images.

notion-image-expiry-1.png

What this means is that as my blog is a statically generated website then the pages will contain links to the Notion-hosted images with that expiry time, once they expire the images won’t load anymore.

I resolved this issue by embedding links to images instead of uploading the images to notion as shown in the screenshot below.

notion-image-expiry-3a.png

To host the images I had to upload them to Amazon S3 which is a service used to host files.

Finally, after embedding images to all the blog posts I created I redeployed the meshu.net site in Vercel and re-checked the blogs.