This commit is contained in:
@@ -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";
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user