Files
erika/middleware.ts
T

11 lines
310 B
TypeScript

import { getServerSession } from "next-auth";
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";
export { default } from "next-auth/middleware";
export const config = {
matcher: ["/form/:path*"],
};