From 0662894f1e6c8b6a02aaaf050cd5aa8377fab56e Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 8 Nov 2024 15:47:28 +0100 Subject: [PATCH 1/3] fix: unauthenticated page --- src/lib/layout/unauthenticated.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/layout/unauthenticated.svelte b/src/lib/layout/unauthenticated.svelte index 72ced96a5..eba0a270d 100644 --- a/src/lib/layout/unauthenticated.svelte +++ b/src/lib/layout/unauthenticated.svelte @@ -194,7 +194,7 @@ From c74390135e37e8248ef2fb6fc5d75c637955371b Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 8 Nov 2024 15:52:05 +0100 Subject: [PATCH 2/3] fix: image url --- src/lib/layout/unauthenticated.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/layout/unauthenticated.svelte b/src/lib/layout/unauthenticated.svelte index eba0a270d..9dd9e82dc 100644 --- a/src/lib/layout/unauthenticated.svelte +++ b/src/lib/layout/unauthenticated.svelte @@ -8,6 +8,7 @@ import type { Coupon } from '$lib/sdk/billing'; import { app } from '$lib/stores/app'; import type { Campaign } from '$lib/stores/campaigns'; + import { getApiEndpoint } from '$lib/stores/sdk'; import { VARS } from '$lib/system'; export const imgLight = LoginLight; @@ -40,7 +41,8 @@ } function getImage(image: string) { - const url = new URL(image, VARS.APPWRITE_ENDPOINT); + const endpoint = getApiEndpoint(); + const url = new URL(image, endpoint); return url.toString(); } From e2b8eb474c26984d1905d7ca7c4a006a5340d7ba Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 8 Nov 2024 15:53:53 +0100 Subject: [PATCH 3/3] chore: remove import --- src/lib/layout/unauthenticated.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/layout/unauthenticated.svelte b/src/lib/layout/unauthenticated.svelte index 9dd9e82dc..da754bd5d 100644 --- a/src/lib/layout/unauthenticated.svelte +++ b/src/lib/layout/unauthenticated.svelte @@ -9,7 +9,6 @@ import { app } from '$lib/stores/app'; import type { Campaign } from '$lib/stores/campaigns'; import { getApiEndpoint } from '$lib/stores/sdk'; - import { VARS } from '$lib/system'; export const imgLight = LoginLight; export const imgDark = LoginDark;