expo-build-cache-provider
v1.0.3
Published
A custom build cache provider for **Expo apps**, allowing developers to store and retrieve build cache using **AWS S3** or **Cloudflare R2** with simple environment-based configuration.
Readme
expo-build-cache-provider
A custom build cache provider for Expo apps, allowing developers to store and retrieve build cache using AWS S3 or Cloudflare R2 with simple environment-based configuration.
This helps speed up Expo builds by reusing cached artifacts across CI/CD pipelines or local machines.
✨ Features
- 🚀 Plug-and-play cache provider for Expo builds
- ☁️ Supports AWS S3 and Cloudflare R2
- 🔐 Secure configuration via
.env - 🧩 Provider-agnostic (easily extendable)
- ⚡ Optimized for CI/CD and local builds
📦 Installation
npm install expo-build-cache-provider🔧 Environment Setup (process.env)
expo-build-cache-provider is configured entirely using environment variables.
Create a .env file in the root of your Expo project.
Required Environment Variables
# Access credentials
EXPO_PUBLIC_DB_ACCESS_KEY_ID=your_access_key_id
EXPO_PUBLIC_DB_SECRET_ACCESS_KEY=your_secret_access_key
# Bucket configuration
EXPO_PUBLIC_DB_BUCKET_NAME=your_bucket_name
# Cloudflare R2 & S3 URL only
EXPO_PUBLIC_DB_URL=your_account_id