LightNet v4 is here! Learn how to upgrade your site
Large file storage
Cloudflare Pages limits each file to 25 MB. This is our recommended way to handle large content files:
- Optimize files whenever possible. Large files take longer to open.
- 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
internalDomainsconfiguration inastro.config.mjsto ensure the files are handled correctly.astro.config.mjs export default defineConfig({// ...internalDomains: ["your-backblaze-domain.com"],});