📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Remove redirect middleware
Blue Mousec9edfa90ac51
diff --git a/docs/middleware.ts b/docs/middleware.tsdeleted file mode 100644index ca31bdb28..000000000--- a/docs/middleware.ts+++ /dev/null@@ -1,13 +0,0 @@-import { NextResponse } from "next/server";-import type { NextRequest } from "next/server";--export function middleware(request: NextRequest) {- const { pathname } = request.nextUrl;-- // Strip trailing slash for all paths except the root- if (pathname !== "/" && pathname.endsWith("/")) {- const url = request.nextUrl.clone();- url.pathname = pathname.slice(0, -1);- return NextResponse.redirect(url, 308);- }-}