I’m working with an Airtable application using their sample template. I have a brand image file called header.png located in the same folder as my main JavaScript file:
Since the Airtable environment doesn’t support webpack, I can’t use the standard import method for images. I’ve attempted different approaches to display the image but none seem to work:
I’ve done this in several Airtable blocks when the static folder was inconsistent across deployments. It’ll bump up your bundle size, but anything under 50KB is pretty negligible.
You could also host the image on a CDN and reference the URL directly. Not as clean for branding stuff you want bundled with your app, but it’s rock solid.
The static folder approach works, but here’s what’s been more reliable for me. Just reference the image by filename once it’s in the static directory:
<img src="header.png" alt="Brand logo" />
I found this debugging a similar issue where ./static/header.png wouldn’t resolve in production builds. Airtable’s block runtime serves static assets at the root level, so skipping the static path reference actually works better.
I hit this same problem building our first Airtable integration. The CLI serves files from static automatically, but won’t bundle anything from src like webpack does.
No frontend/static folder? Just create it manually. The build process picks it up automatically.
You could also embed the image as base64 directly in your component, but that’s messy with larger files and kills performance.
Hit this same problem building internal tools. Static folders work but they’re a pain with multiple environments and updates.
I automated the whole thing instead. Used Latenode to build a workflow that processes and serves images through a CDN. It watches for changes, optimizes everything, and spits out the right URLs for each environment.
try using require() instead of import. something like src={require('./header.png')} might work even without webpack. also check if airtable has any specific asset handling in their docs - they usually have weird quirks for file loading