blob: 15566a8c82b783a31d7ba68cd947014d148463db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { supabase } from '../supabase';
export const setImageUrl = (imageSpec) => {
const { publicURL, error } = supabase
.storage
.from('mistymountains')
.getPublicUrl(imageSpec.image);
if (!error) {
return { ...imageSpec, image: publicURL };
}
return imageSpec;
}
|