Skip to content

Commit 96d3b53

Browse files
fix: favicon non servi + séparateur de titre | (#10)
1 parent 63a65c2 commit 96d3b53

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/app/[locale]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function generateMetadata({
2929
metadataBase: new URL(siteUrl),
3030
title: {
3131
default: t("title"),
32-
template: `%s · ${t("title")}`,
32+
template: `%s | ${t("title")}`,
3333
},
3434
description: t("description"),
3535
alternates: {

src/proxy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ import { routing } from "./i18n/routing";
66
export default createMiddleware(routing);
77

88
export const config = {
9-
matcher: "/((?!api|_next|_vercel|.*\\..*).*)",
9+
// `icon` is the root metadata route (`app/icon.tsx`); without this exclusion the
10+
// locale proxy redirects `/icon` into `[locale]`, breaking the favicon.
11+
matcher: "/((?!api|_next|_vercel|icon|.*\\..*).*)",
1012
};

0 commit comments

Comments
 (0)