Respect custom platform logo env var (VITE_PLATFORM_LOGO is currently ignored) #115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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