Skip to content

Commit 30c4c3e

Browse files
committed
add manifest json
1 parent 207d9c7 commit 30c4c3e

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

packages/web/public/manifest.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Sourcebot",
3+
"short_name": "Sourcebot",
4+
"display": "standalone",
5+
"start_url": "/",
6+
"icons": [
7+
{
8+
"src": "/sb_logo_light_small.png",
9+
"sizes": "1000x1000",
10+
"type": "image/png"
11+
}
12+
]
13+
}
14+

packages/web/src/app/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export default function RootLayout({
2626
// @see : https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-app
2727
suppressHydrationWarning
2828
>
29+
<head>
30+
<link rel="manifest" href="/manifest.json" />
31+
</head>
2932
<body>
3033
<Toaster />
3134
<SessionProvider>

packages/web/src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ export async function middleware(request: NextRequest) {
2929
export const config = {
3030
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
3131
matcher: [
32-
'/((?!api|_next/static|ingest|_next/image|favicon.ico|sitemap.xml|robots.txt|sb_logo_light_large.png|arrow.png|placeholder_avatar.png).*)',
32+
'/((?!api|_next/static|ingest|_next/image|favicon.ico|sitemap.xml|robots.txt|manifest.json|sb_logo_light_large.png|sb_logo_light_small.png|arrow.png|placeholder_avatar.png).*)',
3333
],
3434
}

0 commit comments

Comments
 (0)