Astro Middleware - Matcher for paths

Is there any way to do this next js feature inside AstroJS middleware ?

import { NextRequest, NextResponse } from 'next/server';

export async function middleware(req: NextRequest) {
  

  return NextResponse.next();
}

export const config = {
    matcher: ['/api/users/:path*', '/api/admin/:path*']
};


Thanks!
Was this page helpful?