mirror of
https://github.com/ershisan99/www.git
synced 2026-01-08 05:12:11 +00:00
add fumadocs
This commit is contained in:
14
src/app/docs-og/[...slug]/route.tsx
Normal file
14
src/app/docs-og/[...slug]/route.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { generateOGImage } from 'fumadocs-ui/og'
|
||||
import { metadataImage } from '../../../../lib/metadata'
|
||||
|
||||
export const GET = metadataImage.createAPI((page) => {
|
||||
return generateOGImage({
|
||||
title: page.data.title,
|
||||
description: page.data.description,
|
||||
site: 'My App',
|
||||
})
|
||||
})
|
||||
|
||||
export function generateStaticParams() {
|
||||
return metadataImage.generateParams()
|
||||
}
|
||||
Reference in New Issue
Block a user