Skip to content

fix(website): ship the logo in the bundle - #23

Merged
roncodes merged 1 commit into
mainfrom
fix/logo-in-bundle
Nov 28, 2026
Merged

roncodes merged 1 commit into
mainfrom
fix/logo-in-bundle

Conversation

@roncodes

Copy link
Copy Markdown
Member

The header logo and the browser tab icon are broken on qa and production: both point at /images/fleetbase-icon.svg, and the load balancer still sends that path to Verdaccio (404). registry-infra#6 adds the path to the listener rules but is not live yet.

This removes the dependency instead of waiting for it:

  • The logo is imported in SiteLayout and AuthShell, so Vite emits it as /build/assets/fleetbase-icon-<hash>.svg. /build/* is already routed, cached and fingerprinted.
  • The tab icon is inlined in app.blade.php as a data URI (1.4 KB).
  • The file moves from public/images/ to resources/images/. The website now has no static path besides /build.

Deploying: push main to deploy/qa and deploy/production. No infrastructure change is needed for the logo. registry-infra#6 is still wanted for bare /v1.

Checked locally: npm run build emits the file and both the browser and SSR bundles reference it; tests/Feature/Website/WebsiteTest.php passes.

The logo and the tab icon were /images/fleetbase-icon.svg, a path of its
own that the load balancer has to route while Verdaccio shares the
domain. It was not routed on qa or production, so both showed a broken
image.

The logo is now imported, so Vite emits it under /build/assets with the
rest of the site, and the tab icon is inlined in the page. The website
no longer has any static path besides /build.
@roncodes
roncodes merged commit e22ddab into main Nov 28, 2026
9 checks passed
@roncodes
roncodes deleted the fix/logo-in-bundle branch November 28, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant