astro/.changeset/poor-frogs-clean.md
Daniel d151d9f3f2
enable access to cloudflare runtime (#5103)
* enable access to cloudflare runtime

* added get runtime api
added context to the runtime in "advanced" mode

* added typings and adjusted some return vars

* added default types

* added usage description to changeset and readme

Co-authored-by: AirBorne04 <unknown>
Co-authored-by: AirBorne04 <>
2022-10-26 09:46:25 -04:00

289 B

@astrojs/cloudflare
patch

enable access to cloudflare runtime [KV, R2, Durable Objects]

  • access native cloudflare runtime through import { getRuntime } from "@astrojs/cloudflare/runtime" now you can call getRuntime(Astro.request) and get access to the runtime environment