Add public auth pages, global search, and fixed units
This commit is contained in:
@ -3,7 +3,15 @@ import type { NextRequest } from "next/server";
|
||||
|
||||
import { AUTH_COOKIE_NAME } from "@/lib/auth";
|
||||
|
||||
const publicPaths = ["/login", "/reset-password", "/verify-email"];
|
||||
const publicPaths = [
|
||||
"/login",
|
||||
"/reset-password",
|
||||
"/verify-email",
|
||||
"/contact-admin",
|
||||
"/help-public",
|
||||
"/privacy-policy",
|
||||
"/terms-and-conditions"
|
||||
];
|
||||
|
||||
export function middleware(request: NextRequest) {
|
||||
const { pathname } = request.nextUrl;
|
||||
|
||||
Reference in New Issue
Block a user