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
+1 -1
View File
@@ -34,7 +34,7 @@ export async function verifyAndCreateTicket(checkout: Checkout, file: FormDataEn
const verified = await verifyCommissionSlip(file, checkout.amountBaht, checkout.createdAt);
const objectKey = `commission/slips/${crypto.randomUUID()}`;
const storage = await getMediaStorage();
await storage.write(objectKey, bytes, { type: file.type, acl: "private" });
await storage.write(objectKey, bytes, { type: file.type, acl: "public-read" });
let ticketId: string;
try {
ticketId = await getDb().transaction(async (tx) => {