From 9b4b0847ed4a1025e73bec16a9ee11766e632e14 Mon Sep 17 00:00:00 2001 From: gooby Date: Tue, 7 Nov 2023 19:38:57 +0200 Subject: [PATCH] typo: changed from next/server to next/og (#58143) ### Change the `next/server` to `next/og` to support the upgrade to Next 14 - Next 14 users will experience a deprecation warning when trying to import from `next/server` - Not the biggest change, but it caused some confusion while reading --- .../02-file-conventions/01-metadata/opengraph-image.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/02-api-reference/02-file-conventions/01-metadata/opengraph-image.mdx b/docs/02-app/02-api-reference/02-file-conventions/01-metadata/opengraph-image.mdx index 40fd8e2e0922a..fb6a439454333 100644 --- a/docs/02-app/02-api-reference/02-file-conventions/01-metadata/opengraph-image.mdx +++ b/docs/02-app/02-api-reference/02-file-conventions/01-metadata/opengraph-image.mdx @@ -87,7 +87,7 @@ Generate a route segment's shared image by creating an `opengraph-image` or `twi > - By default, generated images are [**statically optimized**](/docs/app/building-your-application/rendering/server-components#static-rendering-default) (generated at build time and cached) unless they use [dynamic functions](/docs/app/building-your-application/rendering/server-components#server-rendering-strategies#dynamic-functions) or uncached data. > - You can generate multiple Images in the same file using [`generateImageMetadata`](/docs/app/api-reference/functions/generate-image-metadata). -The easiest way to generate an image is to use the [ImageResponse](/docs/app/api-reference/functions/image-response) API from `next/server`. +The easiest way to generate an image is to use the [ImageResponse](/docs/app/api-reference/functions/image-response) API from `next/og`. ```tsx filename="app/about/opengraph-image.tsx" switcher import { ImageResponse } from 'next/og'