Repository navigation
fix(website): ship the logo in the bundle - #23
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
SiteLayoutandAuthShell, so Vite emits it as/build/assets/fleetbase-icon-<hash>.svg./build/*is already routed, cached and fingerprinted.app.blade.phpas a data URI (1.4 KB).public/images/toresources/images/. The website now has no static path besides/build.Deploying: push
maintodeploy/qaanddeploy/production. No infrastructure change is needed for the logo. registry-infra#6 is still wanted for bare/v1.Checked locally:
npm run buildemits the file and both the browser and SSR bundles reference it;tests/Feature/Website/WebsiteTest.phppasses.