Skip to content

Commit

Permalink
mod: social: removed unneeded data
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyFenceCode authored May 2, 2024
1 parent 5d2035a commit c336a63
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pages/og/[...slug].ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { getCollection } from 'astro:content'
import { OGImageRoute } from 'astro-og-canvas'

// Get all entries from the `docs` content collection.
const entries = await getCollection('docs')

// Map the entry array to an object with the page ID as key and the
// frontmatter data as value.
const pages = Object.fromEntries(entries.map(({ data, id }) => [id, { data }]))

export const { getStaticPaths, GET } = OGImageRoute({
Expand Down

0 comments on commit c336a63

Please sign in to comment.