Storing Static Assets

Last updated: May 10, 2024

When it comes to storing static assets (images, videos, fonts), it can be tempting to place them in a directory close to your site's source code. While this is certainly the path of least resistance, serving large files can become a serious drain on your bandwidth limitations. Instead, we recommend that you host static assets on an external CDN/hosting platform. Here are a few suggestions.

Please note that Nacelle does not explicitly recommend any of these products, merely suggestions. 

Shopify

A platform that needs no introductions, we find that most merchants already use Shopify to host product images. While Shopify currently has no storage limits overall, limits are instead placed on a per-file basis. Images have a maximum file size of 20 MB, while videos are limited to 1 GB. 

Assets hosted on Shopify are served by Shopify's own CDN.

For more info see Shopify's Help Center: Uploading and managing files.

To get started:

  1. Login to Shopify.

  2. Go to Settings.

  3. Navigate to the Files page.

Beyond Shopify 

Shopify is by no means the only place to host static content, here are a few other services:

 

Image

Video

Cloudinary

Vimeo

Imgix

ImageKit

Google Cloud CDN

AWS S3

Check w. your headless provider

-

-

Curious about your bandwidth usage? See our article on monitoring your bandwidth usage (in Vercel).