Respect custom platform logo env var (VITE_PLATFORM_LOGO is currently ignored) #115

Closed
opened 2026-04-02 09:57:25 +00:00 by nayan9617 · 0 comments
Contributor

Hi @hodlbod,

Reason behind the issue:
The docs and env template say we can customise the app logo with VITE_PLATFORM_LOGO, but runtime currently always builds the logo as PLATFORM_URL + /logo.png in state.ts.
That means custom deployments cannot actually use their own logo even though configuration suggests they can.

Approach:
Use VITE_PLATFORM_LOGO when provided, and keep the current behaviour as fallback.

Proposed logic:
PLATFORM_LOGO = import.meta.env.VITE_PLATFORM_LOGO || PLATFORM_URL + /logo.png

Why this is safe:
It is fully backward compatible.
If VITE_PLATFORM_LOGO is not set, behaviour remains exactly the same as today.

Impact:
Custom-hosted/community builds can brand the app correctly.
Removes mismatch between documentation and runtime behaviour.

Validation:
Set VITE_PLATFORM_LOGO in local env and confirm logo is used in places that consume PLATFORM_LOGO

Hi @hodlbod, Reason behind the issue: The docs and env template say we can customise the app logo with VITE_PLATFORM_LOGO, but runtime currently always builds the logo as PLATFORM_URL + /logo.png in state.ts. That means custom deployments cannot actually use their own logo even though configuration suggests they can. Approach: Use VITE_PLATFORM_LOGO when provided, and keep the current behaviour as fallback. Proposed logic: PLATFORM_LOGO = import.meta.env.VITE_PLATFORM_LOGO || PLATFORM_URL + /logo.png Why this is safe: It is fully backward compatible. If VITE_PLATFORM_LOGO is not set, behaviour remains exactly the same as today. Impact: Custom-hosted/community builds can brand the app correctly. Removes mismatch between documentation and runtime behaviour. Validation: Set VITE_PLATFORM_LOGO in local env and confirm logo is used in places that consume PLATFORM_LOGO
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coracle/flotilla#115