chore: cache meeting OG images for 1 day (#17525)

This commit is contained in:
Benny Joo
2024-11-07 00:19:20 +00:00
committed by GitHub
parent 88e57d48fe
commit 54cc2dc094
+4 -1
View File
@@ -85,7 +85,10 @@ export default async function handler(req: NextApiRequest) {
ogConfig
) as { body: Buffer };
return new Response(img.body, { status: 200, headers: { "Content-Type": "image/png" } });
return new Response(img.body, {
status: 200,
headers: { "Content-Type": "image/png", "cache-control": "max-age=86400" },
});
}
case "app": {
const { name, description, slug } = appSchema.parse({