Skip to content

Commit

Permalink
preview:cf works with production environment
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Einars <contact@dle.dev>
  • Loading branch information
polaroidkidd committed Oct 29, 2023
1 parent cb18b75 commit c6673c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/atoms/media/avatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
export let isBase64 = false;
let url = isBase64
? (src as string)
: `${PUBLIC_CLOUDFLARE_IMAGE_DELIVERY}/${src}/${isLarge ? 'public' : 'public'}`;
: `${PUBLIC_CLOUDFLARE_IMAGE_DELIVERY}/${src}/${isLarge ? 'public' : 'small'}`;
</script>

{#if src !== null}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/molecues/user/userCardList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{#each users as { id, avatar, firstName }}
<a href={`/users/${id}`} class="">
<div class="inline-flex flex-col w-24 justify-center items-center mb-4">
<Avatar src={avatar.url ?? undefined} width="w-20" />
<Avatar src={avatar.url ?? undefined} width="w-20" isLarge={false} />
<div class="anchor">{firstName}</div>
</div>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/server/repository/prismaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { dev } from '$app/environment';
const prismaConfiguration = {
datasources: {
db: {
url: !dev ? DATABASE_URL : DATA_PROXY
url: dev ? DATABASE_URL : DATA_PROXY
}
}
};
Expand Down

0 comments on commit c6673c4

Please sign in to comment.