Example of (Direct Creator Uploads)[https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/] to Cloudflare Stream
- Create a new file named
.dev.vars
in this directory, and add the following:
CLOUDFLARE_ACCOUNT_ID = ""
CLOUDFLARE_API_TOKEN = ""
- Edit the values for
CLOUDFLARE_ACCOUNT_ID
andCLOUDFLARE_API_TOKEN
in.dev.vars
. Your Cloudflare API Token should never be committed to git or exposed in client avascript. - Run
npm run dev