⚙️ Project Configuration
Storage Options
This project supports multiple storage backends for your build artifacts:
- 🪣 R2 Storage: Cloudflare's object storage with zero egress fees
- 🔑 KV Storage: Cloudflare's key-value storage with global distribution
- ☁️ S3 Storage: Amazon S3 for maximum compatibility and flexibility
The storage priority order is: S3 > KV > R2. When multiple storage options are configured, the highest priority one will be used.
Automatic deletion of old cache files
This project sets up a cron trigger for Cloudflare workers, which automatically deletes old cache files within the configured storage backend. This behavior can be customized:
- To disable the automatic deletion, remove the [triggers] configuration in wrangler.jsonc
- To change the retention period for objects, adjust the
BUCKET_OBJECT_EXPIRATION_HOURS
option in wrangler.jsonc or set it via workers environment variables