Skip to content

Commit

Permalink
feat(expo/listing): use 50% quallity for upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Nov 19, 2023
1 parent 788a8f2 commit 20339f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/expo/src/app/(app)/(tabs)/listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ export default function UploadProductScreen() {
const filePath = `${user?.id}/${data.name}.png`;

await onUpload(filePath);
const imgUrl = storageClient.from("products").getPublicUrl(filePath);
const imgUrl = storageClient.from("products").getPublicUrl(filePath, {
transform: {
quality: 50,
},
});

mutate(
{
Expand Down

0 comments on commit 20339f5

Please sign in to comment.