Skip to content

Commit

Permalink
ci: update integration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Sep 9, 2023
1 parent 033853e commit 6da1db9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/docs/en/guides/integrations-guide/cloudflare.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ From an endpoint:

```js
// src/pages/api/someFile.js
export function get(context) {
export function GET(context) {
const runtime = context.locals.runtime;

return new Response('Some body');
Expand All @@ -134,7 +134,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" />
type AdvancedRuntime = import('@astrojs/cloudflare').AdvancedRuntime;
import type { AdvancedRuntime } from '@astrojs/cloudflare';

declare namespace App {
interface Locals extends AdvancedRuntime {
Expand All @@ -151,7 +151,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" />
type DirectoryRuntime = import('@astrojs/cloudflare').DirectoryRuntime;
import type { DirectoryRuntime } from '@astrojs/cloudflare';

declare namespace App {
interface Locals extends DirectoryRuntime {
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/en/guides/integrations-guide/vercel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ export default defineConfig({

Configuration options for [Vercel's Image Optimization API](https://vercel.com/docs/concepts/image-optimization). See [Vercel's image configuration documentation](https://vercel.com/docs/build-output-api/v3/configuration#images) for a complete list of supported parameters.

The `domains` and `remotePatterns` properties will automatically be filled using [the Astro corresponding `image` settings](/en/reference/configuration-reference/#image-options).

```js
// astro.config.mjs
import { defineConfig } from 'astro/config';
Expand Down

0 comments on commit 6da1db9

Please sign in to comment.