From 561bae7f43f0f775b8f1e9bcaac963afd927d708 Mon Sep 17 00:00:00 2001 From: delucis Date: Tue, 2 May 2023 12:04:07 +0000 Subject: [PATCH] ci: update integration docs --- .../en/guides/integrations-guide/vercel.mdx | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/src/content/docs/en/guides/integrations-guide/vercel.mdx b/src/content/docs/en/guides/integrations-guide/vercel.mdx index a4e0b115c25d08..ee8760c3d73f1f 100644 --- a/src/content/docs/en/guides/integrations-guide/vercel.mdx +++ b/src/content/docs/en/guides/integrations-guide/vercel.mdx @@ -123,6 +123,63 @@ export default defineConfig({ }); ``` +### imageConfig + +**Type:** `VercelImageConfig`
+**Available for:** Edge, Serverless, Static +**Added in:** `@astrojs/vercel@3.3.0` + +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. + +```js +// astro.config.mjs +import { defineConfig } from 'astro/config'; +import vercel from '@astrojs/vercel/static'; + +export default defineConfig({ + output: 'server', + adapter: vercel({ + imageConfig: { + sizes: [320, 640, 1280] + } + }) +}); +``` + +### imageService + +**Type:** `boolean`
+**Available for:** Edge, Serverless, Static +**Added in:** `@astrojs/vercel@3.3.0` + +When enabled, an [Image Service](/en/reference/image-service-reference/) powered by the Vercel Image Optimization API will be automatically configured and used in production. In development, a built-in Squoosh-based service will be used instead. + +```js +// astro.config.mjs +import { defineConfig } from 'astro/config'; +import vercel from '@astrojs/vercel/static'; + +export default defineConfig({ + output: 'server', + adapter: vercel({ + imageService: true + }) +}); +``` + +```astro +--- +import { Image } from "astro:assets"; +import astroLogo from "../assets/logo.png"; +--- + + +My super logo! + + +My super logo! +``` + ### includeFiles **Type:** `string[]`