How to replace Airtable public CDN by your own

How to replace Airtable public CDN by your own

Published
October 23, 2022

Whatā€™s the issue exactly?

Airtable always said that we shouldā€™t rely on their public CDN, and in April, 2022, they announced they were dropping support for their public CDN.
Actually, thatā€™s not exactly what they said, it was well sugar-coated, but the fact remains that you wonā€™t be able to use a url like that from your own website.
Ā 
More precisely, you will be able to do that, but only within 2 hours after the attachment was uploaded. Afterwards, its public link will change and the former link will be invalidated.
Ā 
šŸ’”
Supposedly done to avoid making every document public forever (they still are, but their url changes every 2h), this was clearly intended to reduce costs on Airtableā€™s end and reduce usage of attachment links within the Airtable ecosystem. šŸ˜¬Ā Iā€™m a bit bitter about this decision, because they could have achieved a better result by designing their system differently. There were other possibilities where Airtable would have saved/made much more money while making their customers happier (us). I donā€™t know if theyā€™re blind or if they have so much that they donā€™t really care anymore.
Ā 

My solution for our business

My solution worked very well for us, but is not necessarily the only solution, nor it is the best.
It was the best, for our use-case.
Unfortunately, our solution is deeply technical, and certainly not achievable using purely No-Code. We had to get our hands dirty this time. (using no-code would basically mean relying yet on another provider, which would incur additional costs)
Fortunately, we found various ways to use no-code everywhere that was possible, and overall the complexity is not that great (but still much higher than if Airtable was doing that job for us).
Ā 
Without going too much into the technical details, we created our own Public CDN, hosted on AWS S3/CloudFront. Whenever an attachment is created/updated in the Airtable base, we trigger an Airtable automation, which triggers a webhook, which uploads the attachment to AWS. We store the url of the attachment stored on AWS in Airtable and voilĆ ! Thatā€™s it. Simple, yet effective.
šŸ’”
ā€œSimpleā€ is not really the best word for it. Before coming out with this awesome solution, we had to analyze what was the best solution for us, and this analysis happened over the course of a few months. We were kind of hoping for Airtable to make a new announcement saying it was a big April 1st joke they forgot about. Fortunately, we had 6 month to react to that breaking change, and itā€™s only on October, 2022 that we decided to build our own solution. At this point, we had done enough analysis to know that there werenā€™t any ā€œmagicā€ tool that would take away that pain from us. šŸ‘‰Ā Eventually, once the action plan was clearly defined, it took 5 days to implement the solution (end-to-end), test it thoroughly, and deploy it on all our customers.
Overall, weā€™re really happy with our solution, and we are lucky this breaking change only affects a single app in our whole business (all our apps using No-Code tools, such as Stacker and Noloco shouldnā€™t be affected. Thatā€™s what they promised me, anyway).

Other solutions

šŸ’”
If you got surprised by this breaking change, you can postpone the update for your Airtable Workspace for a few months (until January 2023).
Ā 
There are no alternative solution that ā€œjust workā€, as far as we know.
Iā€™m actually surprised nobody released something to take care of this, there is probably a lot of money to make. Should I give it a try? šŸ¤”
Ā 

Postponing the update to 2023

Go to your workspace settings (https://airtable.com/wspXYZ/workspace/billing) and change the ā€œSecure attachments opt outā€.
notion image

On2Air

On2Air has opened a feature request but nothing has been released as of October 23rd, 2022.
Ā 

Articles

Before going all out building our own stuff (I hate complexity), we discussed a lot with the community. Here are a few articles you might find interesting!
Ā