An open API service indexing awesome lists of open source software.

https://github.com/netlify/dynamic-og-images-example

Generate dynamic OpenGraph images using Netlify Edge Functions
https://github.com/netlify/dynamic-og-images-example

Last synced: 4 months ago
JSON representation

Generate dynamic OpenGraph images using Netlify Edge Functions

Awesome Lists containing this project

README

        

![Netlify Examples](./docs/netlify-examples.png)

# Dynamic OG images with Netlify Edge Functions

This is an example of how to use [Netlify Edge Functions](https://docs.netlify.com/edge-functions/overview/) to generate dynamic OpenGraph images for your site.

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/dynamic-og-images-example)

## Work locally

To use this project locally, first clone the repository:

git clone [email protected]:netlify/dynamic-og-images-example.git
cd dynamic-og-images-example

Install the dependencies:

yarn

Install the Netlify CLI:

npm install -g netlify-cli

Start the development server:

ntl dev --command "yarn dev" --target-port 3000

This will open a browser window at `http://localhost:8888` with the example site.

## Demo site

See [the demo site](https://dynamic-og-images-example.netlify.app) for a live example.