Cron OG Cards

R
Renaudil y a 2 jours
0

Description

A template for scheduled updates to your OG social cards using Vercel Cron Jobs and Upstash Redis.

npx boilerapp cron-og

文档

Next.js Cron OG

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 your own

Deploy the example using Vercel or view the demo here.

Deploy with Vercel

Features

  • Automatic fetching of top stories from Hacker News
  • Upstash as a data store for efficient data storage and retrieval
  • Vercel OG for automatic generation of Open Graph (OG) image
  • Updates Hacker News data every minute thanks to Vercel Cron Jobs

Usage

  1. Clone the repository: git clone https://github.com/gt-codes/og-cron.git
  2. Copy the .env.example file in this directory to .env.local
    • UPSTASH_REDIS_REST_URL: The REST URL for your Upstash Redis instance
    • UPSTASH_REDIS_REST_TOKEN: The REST token for your Upstash Redis instance

Start the development server

npm install
npm run dev

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联系我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联系我们,我们将尽快回复。