summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ematipico <ematipico@users.noreply.github.com> 2023-08-23 15:03:12 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-08-23 15:03:12 +0000
commit0eb7f1972933c6046e47754144b2646cfbec6ad4 (patch)
tree085691b7f10616edbb7838bb9444bcdf1b863e25
parent0be8d9bfa9fa811c4b7e15c4ffd2d37c93f856fe (diff)
downloadastro-0eb7f1972933c6046e47754144b2646cfbec6ad4.tar.gz
astro-0eb7f1972933c6046e47754144b2646cfbec6ad4.tar.zst
astro-0eb7f1972933c6046e47754144b2646cfbec6ad4.zip
[ci] format
-rw-r--r--packages/integrations/cloudflare/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/integrations/cloudflare/README.md b/packages/integrations/cloudflare/README.md
index f5a939b29..523e7c255 100644
--- a/packages/integrations/cloudflare/README.md
+++ b/packages/integrations/cloudflare/README.md
@@ -86,9 +86,9 @@ From an endpoint:
```js
// src/pages/api/someFile.js
export function get(context) {
- const runtime = context.locals.runtime;
-
- return new Response("Some body");
+ const runtime = context.locals.runtime;
+
+ return new Response('Some body');
}
```
@@ -99,7 +99,7 @@ If you're using the `advanced` runtime, you can type the `runtime` object as fol
```ts
// src/env.d.ts
/// <reference types="astro/client" />
-import type { AdvancedRuntime } from "@astrojs/cloudflare"
+import type { AdvancedRuntime } from '@astrojs/cloudflare';
declare namespace App {
interface Locals extends AdvancedRuntime {
@@ -116,7 +116,7 @@ If you're using the `directory` runtime, you can type the `runtime` object as fo
```ts
// src/env.d.ts
/// <reference types="astro/client" />
-import type { DirectoryRuntime } from "@astrojs/cloudflare"
+import type { DirectoryRuntime } from '@astrojs/cloudflare';
declare namespace App {
interface Locals extends DirectoryRuntime {