fix: respect VITE_PLATFORM_LOGO with fallback #116

Merged
hodlbod merged 2 commits from nayan9617/flotilla:fix/platform-logo-env into dev 2026-04-02 17:52:44 +00:00
Contributor

Summary

This PR fixes a platform customization gap where VITE_PLATFORM_LOGO was documented but not used at runtime.

Addresses #115

Why

Custom deployments are expected to override the app logo through environment config, but the app currently hardcodes the logo path from PLATFORM_URL.
That creates a mismatch between documented behavior and actual behavior.

What changed

Updated platform logo resolution in state.ts:194:
Use VITE_PLATFORM_LOGO when provided
Keep existing fallback to PLATFORM_URL + /logo.png
Added a clarifying note in .env.template:8:
VITE_PLATFORM_LOGO can be either a local path (for example logo.png) or a full HTTPS URL

Backward compatibility

No breaking change.
If VITE_PLATFORM_LOGO is not set, behavior remains the same as before.

Validation

Synced branch with latest origin/dev before push
Ran lint successfully
Ran type checks successfully (0 errors, 0 warnings)

Notes

This is a small quality fix that aligns runtime behaviour with configuration and deployment docs.

## Summary This PR fixes a platform customization gap where VITE_PLATFORM_LOGO was documented but not used at runtime. Addresses #115 ## Why Custom deployments are expected to override the app logo through environment config, but the app currently hardcodes the logo path from PLATFORM_URL. That creates a mismatch between documented behavior and actual behavior. ## What changed Updated platform logo resolution in state.ts:194: Use VITE_PLATFORM_LOGO when provided Keep existing fallback to PLATFORM_URL + /logo.png Added a clarifying note in .env.template:8: VITE_PLATFORM_LOGO can be either a local path (for example logo.png) or a full HTTPS URL ## Backward compatibility No breaking change. If VITE_PLATFORM_LOGO is not set, behavior remains the same as before. ## Validation Synced branch with latest origin/dev before push Ran lint successfully Ran type checks successfully (0 errors, 0 warnings) ## Notes This is a small quality fix that aligns runtime behaviour with configuration and deployment docs.
hodlbod requested changes 2026-04-02 17:39:15 +00:00
hodlbod left a comment
Owner

VITE_PLATFORM_LOGO is used, but only for production builds. The build script downloads the url, then processes it so that it's used as the favicon etc as well as just the platform logo. Maybe what you could do is check whether this is a production build in state.ts — if it is, always use logo.png; otherwise use VITE_PLATFORM_LOGO.

VITE_PLATFORM_LOGO is used, but only for production builds. The build script downloads the url, then processes it so that it's used as the favicon etc as well as just the platform logo. Maybe what you could do is check whether this is a production build in state.ts — if it is, always use logo.png; otherwise use VITE_PLATFORM_LOGO.
Author
Contributor

Totally fair, thanks for flagging it.

I’ll update it so production always uses logo.png (to match the build pipeline), and only use VITE_PLATFORM_LOGO in dev/non-production for local customization.

Totally fair, thanks for flagging it. I’ll update it so production always uses logo.png (to match the build pipeline), and only use VITE_PLATFORM_LOGO in dev/non-production for local customization.
hodlbod added 2 commits 2026-04-02 17:52:20 +00:00
hodlbod force-pushed fix/platform-logo-env from dade83d5de to 4f7aa19166 2026-04-02 17:52:20 +00:00 Compare
hodlbod merged commit c882198206 into dev 2026-04-02 17:52:44 +00:00
hodlbod deleted branch fix/platform-logo-env 2026-04-02 17:52:44 +00:00
Sign in to join this conversation.