Skip to content

Commit 0192eb7

Browse files
committed
fix(docs): Exclude sitemap.xml from middleware to prevent i18n rewrite
1 parent 90cd279 commit 0192eb7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/site/proxy.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ const proxy = (request: NextRequest, context: NextFetchEvent) => {
4040
};
4141

4242
export const config = {
43-
// Matcher ignoring `/_next/`, `/api/`, static assets, favicon, feed.xml, etc.
44-
matcher: ["/((?!api|_next/static|_next/image|favicon.ico|feed.xml).*)"]
43+
// Matcher ignoring `/_next/`, `/api/`, static assets, favicon, feed.xml, sitemap.xml, etc.
44+
matcher: [
45+
"/((?!api|_next/static|_next/image|favicon.ico|feed.xml|sitemap.xml).*)"
46+
]
4547
};
4648

4749
export default proxy;

0 commit comments

Comments
 (0)