A minimal Remotion server that runs on Cloudflare Containers.
- You have a Cloudflare account.
- You have enabled the Paid Workers plan (otherwise you'll get an "Unauthorized" error when running
wrangler deploy
). - You have signed in into the Wrangler CLI with
wrangler login
.
Step 1: Install dependencies
npm i
Step 2: Add your Cloudflare credentials to wrangler.toml
:
[vars]
# Create a new R2 bucket in your Cloudflare account
R2_BUCKET_NAME = "cloudflare-container-service"
# How to find your Cloudflare account ID: https://developers.cloudflare.com/fundamentals/account/find-account-and-zone-ids/#users-with-a-single-account
CLOUDFLARE_ACCOUNT_ID = "2fe488b3b0f4deee223aef7464784c46"
[[r2_buckets]]
binding = "R2_BUCKET"
bucket_name = "cloudflare-container-service"
preview_bucket_name = "cloudflare-container-service"
Step 3: Generate the types
npx wrangler types
npx wrangler dev --remote
Note: Without the --remote
flag, the video will not actually be saved to the R2 bucket.
Run without the flag if this is what you intend.
npx wrangler deploy
Get started with Remotion by reading the fundamentals page.
We provide help on our Discord server.
Found an issue with Remotion? File an issue here.
Note that for some entities a company license is needed. Read the terms here.