@vercel/og
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "@vercel/og", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Generate Open Graph Images dynamically from HTML/CSS without a browser", | ||
@@ -62,3 +62,3 @@ "type": "module", | ||
"@resvg/resvg-wasm": "2.4.1", | ||
"satori": "0.4.4", | ||
"satori": "0.4.7", | ||
"yoga-wasm-web": "0.3.3" | ||
@@ -65,0 +65,0 @@ }, |
# Open Graph Image Generation | ||
Generate Open Graph images with Vercel’s [Edge Function](https://vercel.com/docs/concepts/functions/edge-functions). | ||
Generate Open Graph images with Vercel’s API route functions | ||
## Quick Start | ||
Install `@vercel/og`, then use it inside an API route with **Edge Runtime** configured in your Next.js project: | ||
Install `@vercel/og`, then use it inside an API route in your Next.js project: | ||
@@ -13,6 +13,2 @@ ```jsx | ||
export const config = { | ||
runtime: 'experimental-edge', | ||
} | ||
export default function () { | ||
@@ -47,3 +43,3 @@ return new ImageResponse( | ||
`@vercel/og` only supports the [Edge Runtime](https://vercel.com/docs/concepts/functions/edge-functions/quickstart). The Node.js runtime will not work. | ||
`@vercel/og` supports both [Node.js Runtime](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/node-js) and [Edge Runtime](https://vercel.com/docs/concepts/functions/edge-functions/edge-runtime). | ||
@@ -50,0 +46,0 @@ The package exposes an `ImageResponse` constructor, with the following options available: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5971070
36974
21
124
+ Addedsatori@0.4.7(transitive)
- Removedsatori@0.4.4(transitive)
Updatedsatori@0.4.7