0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
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