Skip to content

Commit 6c3ad59

Browse files
committed
chore: Static assets
1 parent 90fa0eb commit 6c3ad59

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

assets/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Allow: *

src/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ const server = serve({
3131
.map(file => file.replace('.template.ts', ''));
3232
return Response.json({ exercises });
3333
},
34+
35+
'/favicon.ico': new Response(await Bun.file(path.join(__dirname, '..', 'assets', 'logo.png')).bytes(), {
36+
headers: { 'Content-Type': 'image/x-icon' },
37+
}),
38+
'/robots.txt': new Response(await Bun.file(path.join(__dirname, '..', 'assets', 'robots.txt')).bytes()),
3439
},
3540

3641
websocket: {

0 commit comments

Comments
 (0)