Skip to content

Latest commit

 

History

History
 
 

direct-creator-uploads

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Template: Direct Creator Uploads to Cloudflare Stream

Deploy to Cloudflare Workers

Example of (Direct Creator Uploads)[https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/] to Cloudflare Stream

Setup

  1. Create a new file named .dev.vars in this directory, and add the following:
CLOUDFLARE_ACCOUNT_ID = ""
CLOUDFLARE_API_TOKEN = ""
  1. Edit the values for CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN in .dev.vars. Your Cloudflare API Token should never be committed to git or exposed in client avascript.
  2. Run npm run dev