redirecter for ao3 that adds opengraph metadata
at main 335 B view raw
1import OGImageLocked from "@/lib/ogimagelocked.js" 2 3export const size = { 4 width: 1600, 5 height: 900, 6} 7 8export const contentType = 'image/png' 9 10export async function GET(req, _ctx) { 11 const props = await req.nextUrl.searchParams 12 return OGImageLocked({theme: props.has('theme') ? props.get('theme') : process.env.DEFAULT_THEME}) 13}