Skip to content

Commit

Permalink
fix: use new image storage bucket
Browse files Browse the repository at this point in the history
move to Cloudflare R2 as Supabase pauses projects not accessed in a while
  • Loading branch information
lastarc authored Oct 10, 2024
1 parent a5a6c47 commit d227edf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
characters.set(updatedData.characters);
nicks.set(updatedData.nicks);
};
const imageBucketEndpoint = 'https://c1.nikk.cc';
</script>

<!--<pre>{JSON.stringify(profile, null, 2)}</pre>-->
Expand Down Expand Up @@ -55,7 +57,7 @@
<figure class="image is-9by16" style="width: 100%; height: 100%;">
<img
style="object-fit: contain; object-position: center;"
src={`https://gyubsxepzjsfwujqrmtj.supabase.co/storage/v1/object/public/character_images/${$editModal?.character.name}.card.jpg`}
src={`${imageBucketEndpoint}/${$editModal?.character.name}.card.jpg`}
alt={`${$editModal?.character.displayName}'s card`}
/>
</figure>
Expand Down Expand Up @@ -86,7 +88,7 @@
<figure class="image is-48x48">
<img
class="is-rounded"
src={`https://gyubsxepzjsfwujqrmtj.supabase.co/storage/v1/object/public/character_images/${character.name}.icon.png`}
src={`${imageBucketEndpoint}/${character.name}.icon.png`}
alt={`${character.displayName}'s icon`}
/>
</figure>
Expand Down

0 comments on commit d227edf

Please sign in to comment.