partykit@0.0.104
threepointone
released this
16 Apr 23:03
·
4 commits
to main
since this release
Patch Changes
-
#868
b337e86
Thanks @threepointone! - feat: custom bindings for cloud-prem (part 1)Instead of having to provision resources directly from the config, we'd like to bind to existing resources in users' CF accounts. For example, you have an R2 bucket that you'd like to access from your partykit project. Now, you can add this to your
partykit.json
:{ //... "bindings": { "r2": { "myBucket": "my-bucket-name", }, }, }
Inside your project, you can now access the r2 bucket with
room.context.bindings.r2.myBucket
(orlobby.bindings.r2.myBucket
).We'll add more types of bindings in the near future.
-
#871
8f5800c
Thanks @buildbreaker! - Update fetch error logging from console.error to console.warn