Large File Storage
Cloudflare Pages puts a limit of 25 MB on the size of each file. This is our recommended way to handle large content files:
- Try to optimize them if possible. Big files have a negative impact on the time to open them.
- Use video hosts like YouTube or Vimeo to upload your videos (if they are safe to use in your context).
- Use Backblaze for large files that cannot be uploaded elsewhere.
How to use Backblaze
Section titled “How to use Backblaze”- Create a Backblaze Account: Sign up at Backblaze.
- Create a Backblaze Bucket: In the Backblaze dashboard, create a new bucket and upload your files.
- Reference Your Backblaze URL: Use the URL of the uploaded file as the media item’s content URL in your media item JSON files.
- Configure Internal Domains: Add your Backblaze domain to the internal domains configuration in
astro.config.mjs
to ensure proper handling of the files.astro.config.mjs export default defineConfig({// ...internalDomains: ["your-backblaze-domain.com"],});