A template for scheduled updates to your OG social cards using Vercel Cron Jobs and Upstash Redis.
This Next.js template automatically fetches the top stories from Hacker News every minute and stores them in Upstash, a Redis client. This template uses Vercel OG to generate an Open Graph (OG) image at the edge, leveraging Upstash for efficient data storage and retrieval.
Deploy the example using Vercel or view the demo here.
git clone https://github.com/gt-codes/og-cron.git
.env.example
file in this directory to .env.local
UPSTASH_REDIS_REST_URL
: The REST URL for your Upstash Redis instanceUPSTASH_REDIS_REST_TOKEN
: The REST token for your Upstash Redis instance
npm installnpm run dev
A template for scheduled updates to your OG social cards using Vercel Cron Jobs and Upstash Redis.
This Next.js template automatically fetches the top stories from Hacker News every minute and stores them in Upstash, a Redis client. This template uses Vercel OG to generate an Open Graph (OG) image at the edge, leveraging Upstash for efficient data storage and retrieval.
Deploy the example using Vercel or view the demo here.
git clone https://github.com/gt-codes/og-cron.git
.env.example
file in this directory to .env.local
UPSTASH_REDIS_REST_URL
: The REST URL for your Upstash Redis instanceUPSTASH_REDIS_REST_TOKEN
: The REST token for your Upstash Redis instance
npm installnpm run dev