From e5962438044fe7dfbe1a1802fad3eb9ef626daa7 Mon Sep 17 00:00:00 2001 From: thorwebdev Date: Thu, 1 Dec 2022 00:17:48 +0800 Subject: [PATCH] chore: storage content type. --- .../supabase/functions/og-image-with-storage-cdn/handler.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/edge-functions/supabase/functions/og-image-with-storage-cdn/handler.tsx b/examples/edge-functions/supabase/functions/og-image-with-storage-cdn/handler.tsx index 995487d373c..80ef24e2ccd 100644 --- a/examples/edge-functions/supabase/functions/og-image-with-storage-cdn/handler.tsx +++ b/examples/edge-functions/supabase/functions/og-image-with-storage-cdn/handler.tsx @@ -207,6 +207,7 @@ export async function handler(req: Request) { const { error } = await supabaseAdminClient.storage .from('images') .upload(`lw6/tickets/${username}.png`, generatedImage.body!, { + contentType: 'image/png', cacheControl: '31536000', upsert: false, })