docs(don): opengraph
Build and Push Image / build-backend (push) Successful in 18s
Build and Push Image / build-frontend (push) Successful in 1m18s
Build and Push Image / push (push) Successful in 47s

This commit is contained in:
2026-06-09 13:29:54 +07:00 Unverified
parent b09e4d8537
commit 72071e56e5
3 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ const { TMN_DEST_PHONE_NUM, SASTIFY_API_PRIVKEY } = process.env as Record<
>;
export const metadata: Metadata = {
title: "โดเนท",
title: "โดเนทขึ้นจอ",
};
type SastifyApiResponse =
+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: "ท็อป 10 อันดับคนโดเนท" });
}
export const dynamic = "force-dynamic";
+6
View File
@@ -6,10 +6,16 @@ import { donations } from "@/lib/db/schema";
import { fileToDataUrl } from "@/lib/utils";
import { Podium } from "./podium";
import { TopDonateTable } from "./table";
import type { Metadata } from "next";
type NumberString = `${number}`;
type NumberLike = number | NumberString;
export const metadata: Metadata = {
title: "โดเนทขึ้นจอ",
description: "ท็อป 10 อันดับคนโดเนท",
};
export default function Page() {
return (
<Suspense fallback={<PageSkeleton />}>