Skip to content

Commit f7b78ce

Browse files
committed
feat(web): replace favicon with brand icon
1 parent 05f29fe commit f7b78ce

5 files changed

Lines changed: 34 additions & 2 deletions

File tree

packages/web/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<meta name="description" content="Coder Studio - Agent-First Development Environment" />
77
<title>Coder Studio</title>
8-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
8+
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
99
</head>
1010
<body>
1111
<div id="root"></div>
1212
<script type="module" src="/src/main.tsx"></script>
1313
</body>
14-
</html>
14+
</html>

packages/web/public/favicon.ico

22.5 KB
Binary file not shown.

packages/web/public/favicon.png

27.6 KB
Loading

packages/web/public/favicon.svg

Lines changed: 19 additions & 0 deletions
Loading

packages/web/src/favicon.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// @vitest-environment node
2+
3+
import { readFileSync } from "node:fs";
4+
import { describe, expect, it } from "vitest";
5+
6+
describe("web favicon wiring", () => {
7+
it("references the root favicon.ico asset from index.html", () => {
8+
const indexHtml = readFileSync(new URL("../index.html", import.meta.url), "utf8");
9+
10+
expect(indexHtml).toContain('href="/favicon.ico"');
11+
expect(indexHtml).not.toContain("/vite.svg");
12+
});
13+
});

0 commit comments

Comments
 (0)