feat: use Supabase for flower job storage

This commit is contained in:
Chaewon Lee
2026-06-12 16:19:36 +09:00
committed by GitHub
parent 922320d59a
commit 5d65a5ffae
18 changed files with 364 additions and 55 deletions

View File

@@ -107,9 +107,10 @@ export async function fetchJob(jobId) {
}
/**
* @param {{ mimeType?: string, base64?: string } | null | undefined} image
* @param {{ mimeType?: string, base64?: string, url?: string } | null | undefined} image
*/
export function toDataUrl(image) {
if (image?.url) return image.url;
if (!image?.base64) return '';
return `data:${image.mimeType || 'image/png'};base64,${image.base64}`;
}