Skip to content

Large file storage

Cloudflare Pages limits each file to 25 MB. This is our recommended way to handle large content files:

  1. Optimize files whenever possible. Large files take longer to open.
  2. Use video hosts like YouTube or Vimeo to upload your videos (if they are safe to use in your context).
  3. Use Backblaze for large files that cannot be uploaded elsewhere.
  1. Create a Backblaze Account: Sign up at Backblaze.
  2. Create a Backblaze Bucket: In the Backblaze dashboard, create a new bucket and upload your files.
  3. Reference Your Backblaze URL: Use the URL of the uploaded file as the media item’s content URL in your media item JSON files.
  4. Configure internal domains: Add your Backblaze domain to the internalDomains configuration in astro.config.mjs to ensure the files are handled correctly.
    astro.config.mjs
    export default defineConfig({
    // ...
    internalDomains: ["your-backblaze-domain.com"],
    });