docs: org and imporvements

This commit is contained in:
Bereket Engida
2024-09-22 00:38:17 +03:00
parent 93f09d1273
commit 1fdc8a5f79
40 changed files with 3104 additions and 3438 deletions

View File

@@ -1,15 +0,0 @@
import { NextRequest, NextResponse } from "next/server";
export default function middleware(req: NextRequest) {
if (
req.nextUrl.pathname.startsWith("/docs") && !req.nextUrl.searchParams.has("allow_docs") &&
process.env.NODE_ENV === "production"
) {
return NextResponse.redirect(new URL("/", req.url));
}
return NextResponse.next();
}
export const config = {
matcher: "/docs/:path*",
};