feat : use cdn
CI / Verify (push) Successful in 1m44s
CI / Build immutable images and deploy (push) Successful in 2m54s

This commit is contained in:
2026-10-01 22:28:22 +07:00 Unverified
parent 9fc12c1874
commit 61dfc9c9e5
9 changed files with 18 additions and 57 deletions
@@ -33,7 +33,7 @@ export async function POST(request: Request, context: RouteContext<"/api/commiss
const bytes = new Uint8Array(await image.arrayBuffer());
await inspectImage(bytes, image.type as "image/png" | "image/jpeg" | "image/webp");
imageObjectKey = `commission/messages/${crypto.randomUUID()}`;
await (await getMediaStorage()).write(imageObjectKey, bytes, { type: image.type, acl: "private" });
await (await getMediaStorage()).write(imageObjectKey, bytes, { type: image.type, acl: "public-read" });
}
let messageId: string;
try {