feat(donate): opengraph
Build and Push Image / docker (push) Successful in 1m43s

This commit is contained in:
2026-06-08 12:24:13 +07:00 Unverified
parent 7de2686ea5
commit 3d7ee68c5c
2 changed files with 21 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import generate from "@/lib/og";
// Image metadata
export const size = {
width: 1222,
height: 560,
};
export const contentType = "image/png";
// Image generation
export default async function Image() {
return generate({ title: "โดเนท", sub: "" });
}
export const dynamic = "force-dynamic";
+5
View File
@@ -33,11 +33,16 @@ import { uidRegex } from "@/lib/const";
import { getArtifactConfig } from "@/lib/api";
import { sse } from "@/lib/db/sse-endpoints";
import { fileToDataUrl } from "@/lib/utils";
import type { Metadata } from "next";
const { TMN_DEST_PHONE_NUM, SASTIFY_API_PRIVKEY } = process.env as Record<
string,
string
>;
export const metadata: Metadata = {
title: "โดเนท",
};
type SastifyApiResponse =
| {
success: true;