ffcfcddb75
* add support for advanced mode * add support for directory mode * use asset fallback as in cloudflare's docs * update locals * come up with new runtime in `Astro.locals` * add overwrite protection * minor cleanup * changeset * address review comments * move overwrite protection to adapter * fix types * fix comment * resolve review comments * update changeset * add test * redo ts * fix integration test port * updated tests, add new port * add TODO comment * update changeset * add JSDoc * Update packages/integrations/cloudflare/src/runtime.ts --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
338 B
338 B
@astrojs/cloudflare |
---|
minor |
The getRuntime
utility has been deprecated and should be updated to the new Astro.locals
API.
- import { getRuntime } from '@astrojs/cloudflare/runtime';
- getRuntime(Astro.request);
+ const runtime = Astro.locals.runtime;