dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Enterprise: Default Dokploy branding flashes before custom white-labeling is applied (FOUC)

Open imrja8 opened this issue 4 months ago • 0 comments

To Reproduce

  1. Ensure Dokploy instance has an active Enterprise license.
  2. Configure custom white-label branding in the Dokploy dashboard (set a custom logo, favicon, custom CSS, and custom App Name).
  3. Open a new incognito window and navigate to the Dokploy login screen (or hard-reload Cmd/Ctrl + Shift + R if already logged in).
  4. Observe the page as it loads. For a split second, you will see the original Dokploy logo, the default Dokploy favicon, and the default CSS before it flashes and applies the custom branding.
  5. Observe the browser tab title. It will initially say "Dokploy", then flash to the custom App Name.
  6. Make a change to the branding settings in the dashboard, then immediately open the login page in a new incognito window. The old branding will still appear for up to a minute before the new settings take effect.

Current vs. Expected behavior

  • Current Behavior: The browser paints the default Dokploy branding (favicon, default CSS, <title>, and logo) immediately upon page load. A moment later, it fetches the custom white-labeling data and updates the UI, causing a noticeable and unpolished visual flash (FOUC). This creates a jarring experience for white-label users.
  • Expected Behavior: The custom white-label branding (Title, Favicon, CSS, and Logos) should be present immediately on the first paint. The page should render instantly with the correct enterprise branding, with zero visual flashes and zero tab title flickering. Furthermore, changes made in the dashboard should reflect immediately on the next page load without waiting for a cache to expire.

Provide environment information

  • Operating System: Ubuntu 22.04 LTS (where Dokploy is hosted)
  • Dokploy version: v0.29.10
  • VPS Provider: DigitalOcean (or equivalent)
  • What applications/services are you trying to deploy? N/A (The bug occurs within the Dokploy Instance itself)

Which area(s) are affected?

Enterprise: Whitelabeling

Are you deploying the applications where Dokploy is installed or on a remote server?

Server where Dokploy is installed

Will you send a PR to fix it?

Yes

imrja8 avatar Jul 07 '26 00:07 imrja8