Skip to content

Serve /favicon.ico and give race pages the full icon set - #1

Merged
MastaP merged 2 commits into
mainfrom
add-favicon-ico
Nov 23, 2026
Merged

MastaP merged 2 commits into
mainfrom
add-favicon-ico

Conversation

@MastaP

@MastaP MastaP commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What changes

  • public/favicon.ico (new): favicon.svg rendered at 16, 32 and 48 px. Browsers, link-preview bots and feed readers request /favicon.ico when 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 pages (race/<id>/): they 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, the same set as index.html.

Verification

  • Typecheck, lint, Prettier, unit tests (301 pass; racePages.test.ts now checks the icon links).
  • A production build puts favicon.ico at the site root, and race pages carry all three icon links.
  • Checked that Chromium decodes the .ico and that its rounded corners stay transparent.

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.
@MastaP
MastaP merged commit a9b4c02 into main Nov 23, 2026
1 check passed
@MastaP
MastaP deleted the add-favicon-ico branch November 23, 2026 19:08
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