Add public auth pages, global search, and fixed units

This commit is contained in:
2026-05-21 07:49:35 +07:00
parent 3002ef9b8c
commit d015cb0dda
24 changed files with 1183 additions and 315 deletions

View File

@ -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;