From 20b5c5a45cd34e716e47b226cd268bddb5bfa6ed Mon Sep 17 00:00:00 2001 From: nayan9617 Date: Thu, 2 Apr 2026 15:28:47 +0530 Subject: [PATCH 1/2] fix: respect VITE_PLATFORM_LOGO with fallback --- .env.template | 1 + src/app/core/state.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.template b/.env.template index fde2a546..65560988 100644 --- a/.env.template +++ b/.env.template @@ -5,6 +5,7 @@ VITE_PLATFORM_URL=https://app.flotilla.social VITE_PLATFORM_TERMS=https://flotilla.social/terms VITE_PLATFORM_PRIVACY=https://flotilla.social/privacy VITE_PLATFORM_NAME=Flotilla +# Can be a local path (e.g. static/logo.png) or a full https URL VITE_PLATFORM_LOGO=static/logo.png VITE_PLATFORM_RELAYS= VITE_PLATFORM_ACCENT="#7161FF" diff --git a/src/app/core/state.ts b/src/app/core/state.ts index 5105ddfd..81a8daaf 100644 --- a/src/app/core/state.ts +++ b/src/app/core/state.ts @@ -191,7 +191,7 @@ export const PLATFORM_TERMS = import.meta.env.VITE_PLATFORM_TERMS export const PLATFORM_PRIVACY = import.meta.env.VITE_PLATFORM_PRIVACY -export const PLATFORM_LOGO = PLATFORM_URL + "/logo.png" +export const PLATFORM_LOGO = import.meta.env.VITE_PLATFORM_LOGO || PLATFORM_URL + "/logo.png" export const PLATFORM_NAME = import.meta.env.VITE_PLATFORM_NAME -- 2.52.0 From 4f7aa191660c3979b88fba5707ccc246e3648280 Mon Sep 17 00:00:00 2001 From: nayan9617 Date: Thu, 2 Apr 2026 23:16:54 +0530 Subject: [PATCH 2/2] align logo handling with production build behavior --- src/app/core/state.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/core/state.ts b/src/app/core/state.ts index 81a8daaf..b5d50a3e 100644 --- a/src/app/core/state.ts +++ b/src/app/core/state.ts @@ -191,7 +191,9 @@ export const PLATFORM_TERMS = import.meta.env.VITE_PLATFORM_TERMS export const PLATFORM_PRIVACY = import.meta.env.VITE_PLATFORM_PRIVACY -export const PLATFORM_LOGO = import.meta.env.VITE_PLATFORM_LOGO || PLATFORM_URL + "/logo.png" +export const PLATFORM_LOGO = import.meta.env.PROD + ? PLATFORM_URL + "/logo.png" + : import.meta.env.VITE_PLATFORM_LOGO || PLATFORM_URL + "/logo.png" export const PLATFORM_NAME = import.meta.env.VITE_PLATFORM_NAME -- 2.52.0