Repository navigation
Serve /favicon.ico and give race pages the full icon set - #1
Merged
Merged
Conversation
Browsers, link-preview bots and feed readers request /favicon.ico when a page names no icon (the 404 page, robots.txt, sitemap.xml) or ignore the <link> tags altogether, and it returned 404. public/favicon.ico now holds favicon.svg rendered at 16, 32 and 48 px. The per-race pages linked only favicon.svg, so browsers without SVG favicon support showed no icon. They now also link favicon-32.png and apple-touch-icon.png, like index.html. Verified with typecheck, lint, unit tests and a production build.
ubuntu-latest now resolves to Ubuntu 26.04, where `playwright install --with-deps chromium` (Playwright 1.60) fails with "Playwright does not support chromium on ubuntu26.04-x64", so the e2e step never runs. Pin the CI job to ubuntu-24.04, a release Playwright supports. The deploy workflow does not install browsers and is unchanged.
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.
What changes
public/favicon.ico(new):favicon.svgrendered at 16, 32 and 48 px. Browsers, link-preview bots and feed readers request/favicon.icowhen a page names no icon (the 404 page,robots.txt,sitemap.xml) or don't read the<link>tags at all. Until now it returned 404.race/<id>/): they linked onlyfavicon.svg, so browsers without SVG favicon support showed no icon. They now also linkfavicon-32.pngandapple-touch-icon.png, the same set asindex.html.Verification
racePages.test.tsnow checks the icon links).favicon.icoat the site root, and race pages carry all three icon links..icoand that its rounded corners stay transparent.