diff --git a/src/middleware.ts b/src/middleware.ts deleted file mode 100644 index 02c7cd4..0000000 --- a/src/middleware.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { NextResponse } from "next/server"; -import { auth } from "@/lib/auth"; - -export default auth((req) => { - const isApp = req.nextUrl.pathname.startsWith("/app"); - if (isApp && !req.auth) { - const url = new URL("/signin", req.url); - url.searchParams.set("from", req.nextUrl.pathname); - return NextResponse.redirect(url); - } -}); - -export const config = { - matcher: ["/app/:path*"], -};