Skip to content

R2

The R2 block is one type of storage block available in Codedraw. When editing R2 you can set:

  • the name of the bucket, this is mostly for visual identification purposes in your Codedraw board.
  • the description.
  • the bucket name this will be how the bucket will be named.
  • the binding. This is how the R2 bucket will be accessible in your worker.

Each environment name will be suffixed to your bucket name when the project is codified. If you have an assets bucket and dev and prod as envs you'll have an assets-dev and assets-prod buckets.