Skip to content

Commit 336472a

Browse files
committed
fix(middleware): exclude /SKILL.md endpoints from markdown rewrite
1 parent 0ad384a commit 336472a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/site/src/middleware.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export const onRequest = defineMiddleware(async (context, next) => {
3636
const isDedicatedMarkdownEndpoint =
3737
pathname === "/auth.md" ||
3838
pathname === "/pricing.md" ||
39-
pathname.toLowerCase() === "/agents.md";
39+
pathname.toLowerCase() === "/agents.md" ||
40+
pathname.endsWith("/SKILL.md");
4041
const isMarkdownUrl =
4142
!isDedicatedMarkdownEndpoint &&
4243
(pathname.endsWith(".md") || pathname.endsWith("/index.md"));

0 commit comments

Comments
 (0)