Skip to content

Commit

Permalink
Remove usage of sas token
Browse files Browse the repository at this point in the history
  • Loading branch information
luz-ojeda committed Apr 10, 2024
1 parent 607f01e commit 9d090df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/lib/components/RecipeCard.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import { PUBLIC_AZURE_STORAGE_SAS_TOKEN } from '$env/static/public';
import { SaveRecipeButton } from '$lib';
import placeholder from '$lib/assets/recipe_image_placeholder.png';
Expand Down
3 changes: 1 addition & 2 deletions src/routes/recetas/[name]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script lang="ts">
import type { Recipe } from '$lib/types/Recipe';
import placeholder from '$lib/assets/recipe_image_placeholder.png';
import { PUBLIC_AZURE_STORAGE_SAS_TOKEN } from '$env/static/public';
import {
CopyRecipeButton,
DownloadRecipeButton,
Expand Down Expand Up @@ -37,7 +36,7 @@
alt={`Photo of the recipe ${data.name}`}
class="image-container rounded-img recipe-image"
crossorigin="anonymous"
src={data.pictures[0] ? `${data.pictures[0]}?${PUBLIC_AZURE_STORAGE_SAS_TOKEN}` : placeholder}
src={data.pictures[0] ? data.pictures[0] : placeholder}
/>
<div>
<h1>{data.name}</h1>
Expand Down

0 comments on commit 9d090df

Please sign in to comment.