Skip to content

remotion-dev/cloudflare-containers-demo

Repository files navigation

Remotion on Cloudflare Workers

Animated Remotion Logo

A minimal Remotion server that runs on Cloudflare Containers.

Requirements

  • 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.

Setup

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

Development

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.

Deployment

npx wrangler deploy

Docs

Get started with Remotion by reading the fundamentals page.

Help

We provide help on our Discord server.

Issues

Found an issue with Remotion? File an issue here.

License

Note that for some entities a company license is needed. Read the terms here.

About

Rendering a Remotion video on Cloudflare Containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published