Andre___
Andre___
TTCTheo's Typesafe Cult
Created by Andre___ on 10/6/2023 in #questions
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*']
};
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!
1 replies
TTCTheo's Typesafe Cult
Created by Andre___ on 7/6/2023 in #questions
[React Native] Open App Location Settings screen
3 replies