Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix builds

Blue Mouseec4b2baaf3d7
diff --git a/docs/lib/source.ts b/docs/lib/source.ts
index af95104e9..2a3f0c424 100644
--- a/docs/lib/source.ts
+++ b/docs/lib/source.ts
@@ -64,7 +64,7 @@ export const source = loader({
return undefined;
},
slugs(file) {
- const p = file.path.replace(/\.(mdx|md)$/, "").replace(/\/index$/, "");
+ const p = (file as { path: string }).path.replace(/\.(mdx|md)$/, "").replace(/\/index$/, "");
if (p in SLUG_MAP) return SLUG_MAP[p];